mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
Prevent crash at access to deleted social data for player.
Remove social data at logout instead ~Player that called also for temporary Player object for Player::MinimalLoadFromDB call.
This commit is contained in:
parent
9e6390d88d
commit
74ddd38af3
3 changed files with 4 additions and 5 deletions
|
|
@ -426,10 +426,8 @@ Player::~Player ()
|
|||
{
|
||||
CleanupsBeforeDelete();
|
||||
|
||||
if(m_uint32Values) // only for fully created Object
|
||||
{
|
||||
sSocialMgr.RemovePlayerSocial(GetGUIDLow());
|
||||
}
|
||||
// it must be unloaded already in PlayerLogout and accessed only for loggined player
|
||||
//m_social = NULL;
|
||||
|
||||
// Note: buy back item already deleted from DB when player was saved
|
||||
for(int i = 0; i < PLAYER_SLOTS_COUNT; ++i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue