mirror of
https://github.com/araxiaonline/mod-azerothshard.git
synced 2026-06-13 01:32:21 -04:00
fix(AZS): Update module after cache updates (#15)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user