*Fix a crash by looting player's corpse when the bg is unloaded.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-18 17:44:17 -05:00
parent 0ca7275043
commit cfd24129d3
2 changed files with 4 additions and 2 deletions

View File

@@ -1107,6 +1107,7 @@ void Map::RemoveAllPlayers()
{
if(HavePlayers())
{
// this is happening for bg
sLog.outError("Map::UnloadAll: there are still players in the instance at unload, should not happen!");
for(MapRefManager::iterator itr = m_mapRefManager.begin(); itr != m_mapRefManager.end(); ++itr)