Some cleanup of add/remove to/from map.

This commit is contained in:
megamage committed 2011-11-11 17:50:26 -05:00
1 parent 3569f01adc
commit 07cf71fdd4
6 files changed
+44 -43

No files matched your search

+1 -1
View File
@@ -494,7 +494,7 @@ void WorldSession::LogoutPlayer(bool Save)
_player->CleanupsBeforeDelete();
sLog->outChar("Account: %d (IP: %s) Logout Character:[%s] (GUID: %u)", GetAccountId(), GetRemoteAddress().c_str(), _player->GetName(), _player->GetGUIDLow());
Map* _map = _player->GetMap();
_map->RemoveFromMap(_player, true);
_map->RemovePlayerFromMap(_player, true);
SetPlayer(NULL); // deleted in Remove call
///- Send the 'logout complete' packet to the client