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

(cherry picked from commit 9c504c8a8e)
This commit is contained in:
Ryan
2016-08-25 16:21:53 +02:00
committed by joschiwald
parent 7f66c730ec
commit e20f44146e

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;