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

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-08-18 17:44:17 -05:00
1 parent 0ca7275043
commit cfd24129d3
2 files changed
+4 -2

No files matched your search

+1
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)