diff options
author | Iskander <none@none> | 2009-06-18 21:35:34 +0200 |
---|---|---|
committer | Iskander <none@none> | 2009-06-18 21:35:34 +0200 |
commit | 731490fd14d5354cd292a212fd90916dd3a2e168 (patch) | |
tree | 93200d1a19f2ca74960ebdde5ce01c1df0036b89 /src | |
parent | 491bc7569ba69ee6c43e007dbce24497c39dd12a (diff) |
* Fix group reseting of instances
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Group.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/Group.cpp b/src/game/Group.cpp index 535a3d4392c..edefd670453 100644 --- a/src/game/Group.cpp +++ b/src/game/Group.cpp @@ -1435,7 +1435,12 @@ void Group::ResetInstances(uint8 method, Player* SendMsgTo) // if the map is loaded, reset it Map *map = MapManager::Instance().FindMap(p->GetMapId(), p->GetInstanceId()); if(map && map->IsDungeon()) - isEmpty = ((InstanceMap*)map)->Reset(method); + { + if(p->CanReset()) + isEmpty = ((InstanceMap*)map)->Reset(method); + else + isEmpty = !map->HavePlayers(); + } if(SendMsgTo) { |