Skip to content

Commit

Permalink
Update CPlayerJoinDataPacket.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Lpsd committed Nov 24, 2023
1 parent 25809fc commit 5483850
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ bool CPlayerJoinDataPacket::Read(NetBitStreamInterface& BitStream)
if (BitStream.Read(m_ucGameVersion) && BitStream.ReadStringCharacters(m_strNick, MAX_PLAYER_NICK_LENGTH) &&
BitStream.Read(reinterpret_cast<char*>(&m_Password), 16) && BitStream.ReadStringCharacters(m_strSerialUser, MAX_SERIAL_LENGTH))
{
if (BitStream.Can(eBitStreamVersion::CPlayerJoinDataPacket_ProtocolConnectArgs))
if (m_usBitStreamVersion >= static_cast<unsigned short>(eBitStreamVersion::CPlayerJoinDataPacket_ProtocolConnectArgs))
BitStream.ReadStringCharacters(m_strConnectArgs, MAX_CONNECT_ARGS_LENGTH);

// Shrink string sizes to fit
Expand Down

0 comments on commit 5483850

Please sign in to comment.