summaryrefslogtreecommitdiff
path: root/src/spellmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/spellmanager.cpp')
-rw-r--r--src/spellmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/spellmanager.cpp b/src/spellmanager.cpp
index bd8c75c19..d9b8e757e 100644
--- a/src/spellmanager.cpp
+++ b/src/spellmanager.cpp
@@ -143,7 +143,8 @@ void SpellManager::invoke(const int spellId) const
>= static_cast<signed>(spell->getBaseLvl()) &&
PlayerInfo::getSkillLevel(static_cast<int>(
spell->getSchool())) >= static_cast<signed>(spell->getSchoolLvl())
- && PlayerInfo::getAttribute(Attributes::MP) >= spell->getMana())
+ && PlayerInfo::getAttribute(Attributes::MP)
+ >= static_cast<int>(spell->getMana()))
)
#endif
{