summaryrefslogtreecommitdiff
path: root/src/spellmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/spellmanager.cpp')
-rw-r--r--src/spellmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spellmanager.cpp b/src/spellmanager.cpp
index 84d05bc12..9409c6c1c 100644
--- a/src/spellmanager.cpp
+++ b/src/spellmanager.cpp
@@ -136,7 +136,7 @@ void SpellManager::invoke(const int spellId) const
if (spell->getCommandType() == TEXT_COMMAND_TEXT
|| (playerHandler->canUseMagic()
- && PlayerInfo::getSkillLevel(SKILL_MAGIC)
+ && PlayerInfo::getSkillLevel(static_cast<int>(MagicSchool::SkillMagic))
>= static_cast<signed>(spell->getBaseLvl())
&& PlayerInfo::getSkillLevel(static_cast<int>(
spell->getSchool())) >= static_cast<signed>(spell->getSchoolLvl())
@@ -288,7 +288,7 @@ void SpellManager::load(const bool oldConfig)
{
addSpell(new TextCommand(i, symbol, cmd, comment,
static_cast<CommandTargetT>(targetType), icon, basicLvl,
- static_cast<MagicSchool>(school), schoolLvl, mana));
+ static_cast<MagicSchoolT>(school), schoolLvl, mana));
}
else
{