Changeset - r25274:6a29839542b8
[Not reviewed]
master
0 1 0
Charles Pigott - 3 years ago 2021-04-25 22:30:32
charlespigott@googlemail.com
Fix 8a95fee4: Missing initialiser in Packet constructor
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/network/core/packet.cpp
Show inline comments
 
@@ -44,7 +44,7 @@ Packet::Packet(NetworkSocketHandler *cs,
 
 *              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);
0 comments (0 inline, 0 general)