mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[6904] Fix possible crash by client sending several times CMSG_PLAYER_LOGIN.
This commit is contained in:
parent
d9de56ed2c
commit
fc5e12c828
2 changed files with 7 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue