mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
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:
@@ -815,8 +815,8 @@ void Map::RemovePlayerFromMap(Player* player, bool remove)
|
||||
|
||||
if (remove)
|
||||
{
|
||||
DeleteFromWorld(player);
|
||||
sScriptMgr->OnPlayerLeaveMap(this, player);
|
||||
DeleteFromWorld(player);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user