diff options
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r-- | src/game/Player.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 3e536625887..577887b18e3 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -17592,10 +17592,7 @@ void Player::SetSpellModTakingSpell(Spell * spell, bool apply) if (apply && spell->getState() == SPELL_STATE_FINISHED) return; - if (apply) - m_spellModTakingSpell = spell; - else - m_spellModTakingSpell = NULL; + m_spellModTakingSpell = apply ? spell : NULL; } // send Proficiency |