[6904] Fix possible crash by client sending several times CMSG_PLAYER_LOGIN.

This commit is contained in:
derex 2008-12-13 19:04:02 +02:00
parent d9de56ed2c
commit fc5e12c828
2 changed files with 7 additions and 1 deletions

View file

@ -453,6 +453,12 @@ void WorldSession::HandlePlayerLoginOpcode( WorldPacket & recv_data )
{
CHECK_PACKET_SIZE(recv_data,8);
if(PlayerLoading() || GetPlayer() != NULL)
{
sLog.outError("Player tryes to login again, AccountId = %d",GetAccountId());
return;
}
m_playerLoading = true;
uint64 playerGuid = 0;