summaryrefslogtreecommitdiff
path: root/src/spellmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/spellmanager.cpp')
-rw-r--r--src/spellmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spellmanager.cpp b/src/spellmanager.cpp
index ed6989280..222004347 100644
--- a/src/spellmanager.cpp
+++ b/src/spellmanager.cpp
@@ -141,7 +141,7 @@ void SpellManager::invoke(int spellId)
&& PlayerInfo::getStatEffective(SKILL_MAGIC) >= spell->getBaseLvl()
&& PlayerInfo::getStatEffective(
spell->getSchool()) >= spell->getSchoolLvl()
- && PlayerInfo::getAttribute(MP) >= spell->getMana()))
+ && PlayerInfo::getAttribute(PlayerInfo::MP) >= spell->getMana()))
{
Being* target = player_node->getTarget();
if (spell->getTargetType() == NOTARGET)