Fix crash with dangling player pointer
For a more educated fix would need to get access to git history for why the hook was moved here. Or alternatively, try research what would be the correct place for the hook.
This commit is contained in:
parent
43498cc1a2
commit
bb70286d18
1 changed files with 1 additions and 1 deletions
|
|
@ -815,8 +815,8 @@ void Map::RemovePlayerFromMap(Player* player, bool remove)
|
|||
|
||||
if (remove)
|
||||
{
|
||||
DeleteFromWorld(player);
|
||||
sScriptMgr->OnPlayerLeaveMap(this, player);
|
||||
DeleteFromWorld(player);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue