diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2021-04-25 23:30:32 +0100 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-04-26 06:45:37 +0200 |
commit | 43b6f6915b5bfb1685c70cc1898e55cbe2cec03a (patch) | |
tree | bdfc4867247fcf0db68a85b79b56180fd5e00fc5 /src/network/core | |
parent | 5afb09008286759fce9fcf109881eabc078b7301 (diff) | |
download | openttd-43b6f6915b5bfb1685c70cc1898e55cbe2cec03a.tar.xz |
Fix 8a95fee4: Missing initialiser in Packet constructor
Diffstat (limited to 'src/network/core')
-rw-r--r-- | src/network/core/packet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/core/packet.cpp b/src/network/core/packet.cpp index 40e664055..644490e0f 100644 --- a/src/network/core/packet.cpp +++ b/src/network/core/packet.cpp @@ -44,7 +44,7 @@ Packet::Packet(NetworkSocketHandler *cs, size_t limit, size_t initial_read_size) * the limit as it might break things if the other side is not expecting * much larger packets than what they support. */ -Packet::Packet(PacketType type, size_t limit) : next(nullptr), pos(0), cs(nullptr) +Packet::Packet(PacketType type, size_t limit) : next(nullptr), pos(0), limit(limit), cs(nullptr) { /* Allocate space for the the size so we can write that in just before sending the packet. */ this->Send_uint16(0); |