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:
Rochet2
2018-03-11 17:54:48 +02:00
committed by GitHub
parent 43498cc1a2
commit bb70286d18

View File

@@ -815,8 +815,8 @@ void Map::RemovePlayerFromMap(Player* player, bool remove)
if (remove)
{
DeleteFromWorld(player);
sScriptMgr->OnPlayerLeaveMap(this, player);
DeleteFromWorld(player);
}
}