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

(cherry picked from commit 9c504c8a8ec4db3b75ad35172827457905ede8ee)
This commit is contained in:
Ryan
2017-02-18 17:16:05 +01:00
committed by joschiwald
parent 7f66c730ec
commit e20f44146e
+1 -1
View File
@@ -19062,7 +19062,7 @@ InstanceSave* Player::GetInstanceSave(uint32 mapid)
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(GetDifficultyID(mapEntry), mapid))
pSave = groupBind->save;
return pSave;