SuperMarioOdysseyOnline/include/packets/PlayerConnect.h
Nick Renieris 8f21d43bc3 packets/PlayerConnect: Initialize maxPlayerCount
It was sending bad data since it wasn't getting inited anywhere.
2022-06-23 20:56:05 -04:00

12 lines
No EOL
328 B
C++

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