diff options
author | rubidium42 <rubidium@openttd.org> | 2021-04-27 21:25:52 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-05-03 17:56:05 +0200 |
commit | ba409e8c4502cc435d0d3f4bec7ba5f5fe28b658 (patch) | |
tree | 0dcb7e927b2f9fdb8ba92a5b3af9168e73777eef /src/network/core/packet.h | |
parent | 8228021afea409ad41268f995ce6ab629f3cbc0d (diff) | |
download | openttd-ba409e8c4502cc435d0d3f4bec7ba5f5fe28b658.tar.xz |
Add: [Network] Writing std::string to a packet
Diffstat (limited to 'src/network/core/packet.h')
-rw-r--r-- | src/network/core/packet.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/core/packet.h b/src/network/core/packet.h index bc7bab6c4..0f58d3be8 100644 --- a/src/network/core/packet.h +++ b/src/network/core/packet.h @@ -71,7 +71,7 @@ public: void Send_uint16(uint16 data); void Send_uint32(uint32 data); void Send_uint64(uint64 data); - void Send_string(const char *data); + void Send_string(const std::string_view data); size_t Send_bytes (const byte *begin, const byte *end); /* Reading/receiving of packets */ |