*Remove unneeded Player::CleanupsBeforeDelete call.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-07-17 18:27:02 +02:00
parent cf6b6a2480
commit ec198d358d
-3
View File
@@ -384,9 +384,6 @@ void WorldSession::LogoutPlayer(bool Save)
sSocialMgr.SendFriendStatus(_player, FRIEND_OFFLINE, _player->GetGUIDLow(), true); sSocialMgr.SendFriendStatus(_player, FRIEND_OFFLINE, _player->GetGUIDLow(), true);
sSocialMgr.RemovePlayerSocial (_player->GetGUIDLow ()); sSocialMgr.RemovePlayerSocial (_player->GetGUIDLow ());
///- Delete the player object
_player->CleanupsBeforeDelete(); // do some cleanup before deleting to prevent crash at crossreferences to already deleted data
///- Remove the player from the world ///- Remove the player from the world
// the player may not be in the world when logging out // the player may not be in the world when logging out
// e.g if he got disconnected during a transfer to another map // e.g if he got disconnected during a transfer to another map