[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.

Signed-off-by: Wyk3d <Wyk3d@getmangos.com>
This commit is contained in:
lukaasm 2009-07-02 15:38:07 +03:00 committed by Wyk3d
parent fbfbdf6d13
commit 1498f93e49
2 changed files with 2 additions and 2 deletions

View file

@ -1504,7 +1504,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()))
isEmpty = ((InstanceMap*)map)->Reset(method);
if(SendMsgTo)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8107"
#define REVISION_NR "8108"
#endif // __REVISION_NR_H__