Remove deprecated function/method calls (#48)

This commit is contained in:
Mike Delago
2024-07-24 08:45:28 -04:00
committed by GitHub
parent 0f83b9cc07
commit 1ced296be5

View File

@@ -29,7 +29,7 @@ public:
{
if (sConfigMgr->GetOption<bool>("LearnSpells.Enable", true))
{
if (player->getLevel() <= sConfigMgr->GetOption<uint8>("LearnSpells.MaxLevel", 80) && oldLevel < player->getLevel())
if (player->GetLevel() <= sConfigMgr->GetOption<uint8>("LearnSpells.MaxLevel", 80) && oldLevel < player->GetLevel())
LearnSpellsForNewLevel(player, oldLevel);
}
}
@@ -402,7 +402,7 @@ private:
void LearnSpellsForNewLevel(Player* player, uint8 fromLevel)
{
uint8 upToLevel = player->getLevel();
uint8 upToLevel = player->GetLevel();
uint32 family = GetSpellFamily(player);
for (int level = fromLevel; level <= upToLevel; level++)