mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
Prevent crash at access to deleted social data for player.
Remove social data at logout instead ~Player that called also for temporary Player object for Player::MinimalLoadFromDB call.
This commit is contained in:
parent
9e6390d88d
commit
74ddd38af3
3 changed files with 4 additions and 5 deletions
|
|
@ -380,6 +380,7 @@ void WorldSession::LogoutPlayer(bool Save)
|
|||
///- Delete the player object
|
||||
_player->CleanupsBeforeDelete(); // do some cleanup before deleting to prevent crash at crossreferences to already deleted data
|
||||
|
||||
sSocialMgr.RemovePlayerSocial (_player->GetGUIDLow ());
|
||||
delete _player;
|
||||
_player = NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue