aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-31 00:14:45 -0500
committermegamage <none@none>2009-08-31 00:14:45 -0500
commitf5d4ee1e9535326993e33c7088804d846494d8f9 (patch)
tree327dd74355129f37275e375bb80a0e8a65c8a9e2 /src/game/Player.cpp
parent9b0c7129465bfc98e13d6f7b0596d1e0c089ef01 (diff)
*Fix a crash caused by unremoved spell mode. Thanks to Visagalis
--HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp5
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