From f5d4ee1e9535326993e33c7088804d846494d8f9 Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 31 Aug 2009 00:14:45 -0500 Subject: *Fix a crash caused by unremoved spell mode. Thanks to Visagalis --HG-- branch : trunk --- src/game/Player.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/game/Player.cpp') 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 -- cgit v1.2.3