Skip to content

Commit

Permalink
fix(AZS): Update module after cache updates (azerothcore#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyeriah authored Nov 18, 2021
1 parent 29a306e commit eeac029
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/mod-playerstats/src/scripts/PlayerStats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ uint32 AzthPlayer::normalizeLvl(uint32 level)
{
for (Group::member_citerator mitr = group->GetMemberSlots().begin(); mitr != group->GetMemberSlots().end(); ++mitr)
{
if (const GlobalPlayerData* gpd = sWorld->GetGlobalPlayerData(mitr->guid.GetCounter()))
if (CharacterCacheEntry const* gpd = sCharacterCache->GetCharacterCacheByGuid(mitr->guid))
{
if (groupLevel < gpd->level)
rLevel = gpd->level;
if (groupLevel < gpd->Level)
rLevel = gpd->Level;
}
}
}
Expand Down

0 comments on commit eeac029

Please sign in to comment.