diff --git a/src/mod_learnspells.cpp b/src/mod_learnspells.cpp index f1e9155..85101a5 100644 --- a/src/mod_learnspells.cpp +++ b/src/mod_learnspells.cpp @@ -29,7 +29,7 @@ class LearnSpellsOnLevelUp : public PlayerScript { if (sConfigMgr->GetOption("LearnSpells.Enable", true)) { - if (player->getLevel() <= sConfigMgr->GetOption("LearnSpells.MaxLevel", 80) && oldLevel < player->getLevel()) + if (player->GetLevel() <= sConfigMgr->GetOption("LearnSpells.MaxLevel", 80) && oldLevel < player->GetLevel()) LearnSpellsForNewLevel(player, oldLevel); } } @@ -402,7 +402,7 @@ class LearnSpellsOnLevelUp : public PlayerScript 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++)