Core/Map:

- Fixed crash when a player was disconnected during a transfer to another map.
- Only call OnPlayerLeaveMap if player is removed from map. (Ty QAston)
This commit is contained in:
kaelima
2012-02-10 12:43:13 +01:00
parent 5251daf01a
commit 03b2717931
4 changed files with 6 additions and 6 deletions
+2 -1
View File
@@ -668,7 +668,8 @@ void Map::RemovePlayerFromMap(Player* player, bool remove)
if (remove)
DeleteFromWorld(player);
sScriptMgr->OnPlayerLeaveMap(this, player);
if (remove)
sScriptMgr->OnPlayerLeaveMap(this, player);
}
template<class T>