[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
This commit is contained in:
megamage
2009-07-07 06:05:30 +08:00
parent cd0111c3ea
commit 9418053b37
+1 -1
View File
@@ -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);