From 3ea64f75812b7cdf81d9bc404ee9f50f16054b6c Mon Sep 17 00:00:00 2001 From: KingPin Date: Tue, 28 Oct 2008 08:10:44 -0500 Subject: [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 --- src/game/Player.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/game/Player.cpp') diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 39ac45bde42..b976ff13890 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -433,10 +433,7 @@ Player::~Player () { CleanupsBeforeDelete(); - if(m_uint32Values) // only for fully created Object - { - sSocialMgr.RemovePlayerSocial(GetGUIDLow()); - } + //m_social = NULL; // Note: buy back item already deleted from DB when player was saved for(int i = 0; i < PLAYER_SLOTS_COUNT; ++i) -- cgit v1.2.3