Core/Instance: Fix GetInstanceSave sometimes checking the wrong map (#17856)

This commit is contained in:
Ryan authored and Aokromes committed 2016-08-26 00:01:40 +02:00
1 parent 8bbdb048ea
commit e344fc9cbf
1 file changed
+1 -1
+1 -1
View File
@@ -18830,7 +18830,7 @@ InstanceSave* Player::GetInstanceSave(uint32 mapid, bool raid)
InstanceSave* pSave = pBind ? pBind->save : NULL;
if (!pBind || !pBind->perm)
if (Group* group = GetGroup())
if (InstanceGroupBind* groupBind = group->GetBoundInstance(this))
if (InstanceGroupBind* groupBind = group->GetBoundInstance(GetDifficulty(raid), mapid))
pSave = groupBind->save;
return pSave;