From 1b92277e8cb4183095fdd0299c8de15d34b6109b Mon Sep 17 00:00:00 2001 From: QAston Date: Sat, 30 Jan 2010 15:57:41 +0100 Subject: [PATCH] *Fix the dead loop in Player::removeSpell, or at least optimize the cycle. --HG-- branch : trunk --- src/game/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/Player.cpp b/src/game/Player.cpp index fe7e5e206f..474c62d019 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -3438,7 +3438,7 @@ void Player::removeSpell(uint32 spell_id, bool disabled, bool learn_low_rank) if (SpellChainNode const* node = spellmgr.GetSpellChainNode(spell_id)) { if (HasSpell(node->next) && !GetTalentSpellPos(node->next)) - removeSpell(node->next,disabled); + removeSpell(node->next,disabled, false); } //unlearn spells dependent from recently removed spells SpellsRequiringSpellMap const &reqMap = spellmgr.GetSpellsRequiringSpell();