aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-27 18:45:05 -0500
committermegamage <none@none>2009-04-27 18:45:05 -0500
commitff69ced9fe6a289a6a5a1d8058dabe296c2a6615 (patch)
tree96bb69ae407f1531ac358870bbd9c526cca4f0ab /src
parent2b4e83d8fbd40f77033b9541fd3efc9979df1f44 (diff)
[7718] Fix my typo in [7716] commit. Author: AlexDereka
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Player.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 30c79b11c95..36a7a99f9e7 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -2891,9 +2891,9 @@ bool Player::addSpell(uint32 spell_id, bool active, bool learning, bool dependen
}
// mark old spell as disable (SMSG_SUPERCEDED_SPELL replace it in client by new)
- itr->second->active = false;
- if(itr->second->state != PLAYERSPELL_NEW)
- itr->second->state = PLAYERSPELL_CHANGED;
+ itr2->second->active = false;
+ if(itr2->second->state != PLAYERSPELL_NEW)
+ itr2->second->state = PLAYERSPELL_CHANGED;
superceded_old = true; // new spell replace old in action bars and spell book.
}
else if(spellmgr.IsHighRankOfSpell(itr2->first,spell_id))