mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-17 08:00:48 +01:00
Core/Instance: Fix GetInstanceSave sometimes checking the wrong map (#17856)
(cherry picked from commit 9c504c8a8e)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user