diff options
author | QAston <none@none> | 2009-04-20 00:57:14 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-04-20 00:57:14 +0200 |
commit | b190b51d4f2d801e7ea1e14961d71778f497ff1e (patch) | |
tree | 1090d3115cb6c6172bd53394fddc01dc7575f984 /src | |
parent | 9e5276fe16fcf7b04930220a2d5e52067cdda3a0 (diff) |
*Missing part of last commit
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 3cad4a08d1b..7b4cb2e1958 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -501,7 +501,7 @@ void Unit::RemoveSpellbyDamageTaken(uint32 damage, uint32 spell) std::queue < std::pair < uint32, uint64 > > remove_list; - for (AuraList::iterator iter = m_ccAuras.begin(); iter != m_ccAuras.end();) + for (AuraList::iterator iter = m_ccAuras.begin(); iter != m_ccAuras.end();++iter) { if((!spell || (*iter)->GetId() != spell) && roll_chance_f(chance)) { @@ -4054,7 +4054,7 @@ void Unit::RemoveAurasByTypeWithDispel(AuraType auraType, Spell * spell) if (auraType >= TOTAL_AURAS) return; std::queue < std::pair < uint32, uint64 > > remove_list; - for (AuraEffectList::iterator iter = m_modAuras[auraType].begin(); iter != m_modAuras[auraType].end();) + for (AuraEffectList::iterator iter = m_modAuras[auraType].begin(); iter != m_modAuras[auraType].end();++iter) { if(GetDispelChance((*iter)->GetCaster(), (*iter)->GetId())) { |