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 committed by GRAnimated
parent 60a5179e4b
commit 8f21d43bc3

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] = {};
};