From ce643187f06cd0b3829ab90deff335f5c9ec5a84 Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 8 Dec 2008 16:34:03 -0600 Subject: *Update to Mangos 6888. Source: Mangos. *Major change: Make corpse erase async, Avoid DB access on deleting guild member. *Skip 6885 because of performance concern. --HG-- branch : trunk --- src/game/Spell.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/Spell.cpp') diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 49a70082c35..a5052dbf07b 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -650,7 +650,7 @@ void Spell::FillTargetMap() /*if(m_caster->GetTypeId() == TYPEID_PLAYER) { Player *me = (Player*)m_caster; - for (std::list::const_iterator itr = tmpUnitMap.begin(); itr != tmpUnitMap.end(); itr++) + for (std::list::const_iterator itr = tmpUnitMap.begin(); itr != tmpUnitMap.end(); ++itr) { Unit *owner = (*itr)->GetOwner(); Unit *u = owner ? owner : (*itr); @@ -4584,7 +4584,7 @@ uint8 Spell::CheckCasterAuras() const { //Checking auras is needed now, because you are prevented by some state but the spell grants immunity. Unit::AuraMap const& auras = m_caster->GetAuras(); - for(Unit::AuraMap::const_iterator itr = auras.begin(); itr != auras.end(); itr++) + for(Unit::AuraMap::const_iterator itr = auras.begin(); itr != auras.end(); ++itr) { if(itr->second) { -- cgit v1.2.3