From 43b6f6915b5bfb1685c70cc1898e55cbe2cec03a Mon Sep 17 00:00:00 2001 From: Charles Pigott Date: Sun, 25 Apr 2021 23:30:32 +0100 Subject: Fix 8a95fee4: Missing initialiser in Packet constructor --- src/network/core/packet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/network/core') 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); -- cgit v1.2.3-70-g09d2