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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user