From b190b51d4f2d801e7ea1e14961d71778f497ff1e Mon Sep 17 00:00:00 2001 From: QAston Date: Mon, 20 Apr 2009 00:57:14 +0200 Subject: *Missing part of last commit --HG-- branch : trunk --- src/game/Unit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/Unit.cpp') 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())) { -- cgit v1.2.3