*Fix a bug that causes freeze.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-21 09:15:04 -06:00
parent 323c97bb3b
commit 1bf8d1c50b

View File

@@ -16039,7 +16039,10 @@ void Player::ResetInstances(uint8 method)
Map *map = MapManager::Instance().FindMap(p->GetMapId(), p->GetInstanceId());
if(map && map->IsDungeon())
if(!((InstanceMap*)map)->Reset(method))
{
++itr;
continue;
}
// since this is a solo instance there should not be any players inside
if(method == INSTANCE_RESET_ALL || method == INSTANCE_RESET_CHANGE_DIFFICULTY)