1
0

Fixed a crash on immediate re-login.

Fixes #155.
This commit is contained in:
madmaxoft 2013-09-09 18:34:38 +02:00
parent 5945166a98
commit becb36d2d1

View File

@ -584,7 +584,7 @@ void cProtocol125::SendPlayerListItem(const cPlayer & a_Player, bool a_IsOnline)
WriteByte ((unsigned char)PACKET_PLAYER_LIST_ITEM);
WriteString(PlayerName);
WriteBool (a_IsOnline);
WriteShort (a_Player.GetClientHandle()->GetPing());
WriteShort (a_IsOnline ? a_Player.GetClientHandle()->GetPing() : 0);
Flush();
}