Core/Maps: Remove redundant if()
This commit is contained in:
@@ -666,10 +666,11 @@ void Map::RemovePlayerFromMap(Player* player, bool remove)
|
||||
ASSERT(remove); //maybe deleted in logoutplayer when player is not in a map
|
||||
|
||||
if (remove)
|
||||
{
|
||||
DeleteFromWorld(player);
|
||||
|
||||
if (remove)
|
||||
sScriptMgr->OnPlayerLeaveMap(this, player);
|
||||
}
|
||||
}
|
||||
|
||||
template<class T>
|
||||
|
||||
Reference in New Issue
Block a user