mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +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);
|
CHECK_PACKET_SIZE(recv_data,8);
|
||||||
|
|
||||||
|
if(PlayerLoading() || GetPlayer() != NULL)
|
||||||
|
{
|
||||||
|
sLog.outError("Player tryes to login again, AccountId = %d",GetAccountId());
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
m_playerLoading = true;
|
m_playerLoading = true;
|
||||||
uint64 playerGuid = 0;
|
uint64 playerGuid = 0;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "6903"
|
#define REVISION_NR "6904"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue