aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-07-07 06:05:30 +0800
committermegamage <none@none>2009-07-07 06:05:30 +0800
commit9418053b37fdc6172fede4f3838cb914fc6e6dd7 (patch)
treef3634aa7bc5ae762098c5304969c00c68aae9be6 /src
parentcd0111c3eafceedf0737db1e7fbe64f91fce65e8 (diff)
[8108] Fixed a case in resetting group binds where the actual map reset was done even though it had permanent binds.
This is a temp fix as the function should be rewritten to be more clear / less error prone. Author: lukaasm --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Group.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Group.cpp b/src/game/Group.cpp
index 9db043b28f1..8a02afa25d2 100644
--- a/src/game/Group.cpp
+++ b/src/game/Group.cpp
@@ -1510,7 +1510,7 @@ void Group::ResetInstances(uint8 method, Player* SendMsgTo)
bool isEmpty = true;
// if the map is loaded, reset it
Map *map = MapManager::Instance().FindMap(p->GetMapId(), p->GetInstanceId());
- if(map && map->IsDungeon())
+ if(map && map->IsDungeon() && !(method == INSTANCE_RESET_GROUP_DISBAND && !p->CanReset()))
{
if(p->CanReset())
isEmpty = ((InstanceMap*)map)->Reset(method);