* Fix group reseting of instances

--HG--
branch : trunk
This commit is contained in:
Iskander
2009-06-18 21:35:34 +02:00
parent 491bc7569b
commit 731490fd14
+5
View File
@@ -1435,7 +1435,12 @@ void Group::ResetInstances(uint8 method, Player* SendMsgTo)
// if the map is loaded, reset it // if the map is loaded, reset it
Map *map = MapManager::Instance().FindMap(p->GetMapId(), p->GetInstanceId()); Map *map = MapManager::Instance().FindMap(p->GetMapId(), p->GetInstanceId());
if(map && map->IsDungeon()) if(map && map->IsDungeon())
{
if(p->CanReset())
isEmpty = ((InstanceMap*)map)->Reset(method); isEmpty = ((InstanceMap*)map)->Reset(method);
else
isEmpty = !map->HavePlayers();
}
if(SendMsgTo) if(SendMsgTo)
{ {