packets/PlayerConnect: Initialize maxPlayerCount

It was sending bad data since it wasn't getting inited anywhere.
This commit is contained in:
Nick Renieris 2022-06-24 03:18:40 +03:00
parent 6a058e2bf9
commit 8487d90795

View file

@ -2,9 +2,11 @@
#include "Packet.h"
#include <cstdint>
struct PACKED PlayerConnect : Packet {
PlayerConnect() : Packet() {this->mType = PacketType::PLAYERCON; mPacketSize = sizeof(PlayerConnect) - sizeof(Packet);};
ConnectionTypes conType;
u16 maxPlayerCount;
u16 maxPlayerCount = USHRT_MAX;
char clientName[COSTUMEBUFSIZE] = {};
};