Skip to content

Commit

Permalink
Core/Instance: Fix GetInstanceSave sometimes checking the wrong map (T…
Browse files Browse the repository at this point in the history
…rinityCore#17856)

(cherry picked from commit 9c504c8)
  • Loading branch information
roc13x authored and zgn1988 committed Feb 18, 2017
1 parent 6adbb3f commit 25d52a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Entities/Player/Player.cpp
Expand Up @@ -19082,7 +19082,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;
Expand Down

0 comments on commit 25d52a9

Please sign in to comment.