diff options
| author | megamage <none@none> | 2009-08-10 23:32:20 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-08-10 23:32:20 -0500 |
| commit | 31374835f6d4ef983d75af1209125d9db08442af (patch) | |
| tree | 5241eba0d0ed151d479012a83a0992128991db70 /src/game/WorldSession.cpp | |
| parent | 4ecbefabfa43893e2411fd0cbb40767e7a74f758 (diff) | |
*Cleanup about deleting player.
--HG--
branch : trunk
Diffstat (limited to 'src/game/WorldSession.cpp')
| -rw-r--r-- | src/game/WorldSession.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/WorldSession.cpp b/src/game/WorldSession.cpp index 3b32eefcda7..57a2058e95c 100644 --- a/src/game/WorldSession.cpp +++ b/src/game/WorldSession.cpp @@ -387,6 +387,7 @@ void WorldSession::LogoutPlayer(bool Save) // the player may not be in the world when logging out // e.g if he got disconnected during a transfer to another map // calls to GetMap in this case may cause crashes + _player->CleanupsBeforeDelete(); Map* _map = _player->GetMap(); _map->Remove(_player, true); _player = NULL; // deleted in Remove call |
