aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 53add222819..0a90f721899 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -17316,7 +17316,7 @@ void Player::SetSpellModTakingSpell(Spell * spell, bool apply)
if (!spell || (m_spellModTakingSpell && m_spellModTakingSpell != spell))
return;
- if (apply && spell->m_spellState == SPELL_STATE_FINISHED)
+ if (apply && spell->getState() == SPELL_STATE_FINISHED)
return;
if (apply)