[svn] * Prevent crash at access to deleted social data for player. Remove social data at logout instead - source mangos

* Fixed subcommands list output at console. - source mangos
* Rename scripts update.

--HG--
branch : trunk
This commit is contained in:
KingPin committed 2008-10-28 08:10:44 -05:00
1 parent f724227f24
commit 3ea64f7581
5 files changed
+10 -6

No files matched your search

+1
View File
@@ -385,6 +385,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;