From d9de0874ae9e198b8bf97113e7053890fc8119e3 Mon Sep 17 00:00:00 2001 From: Anubisss Date: Sat, 27 Mar 2010 16:21:37 +0100 Subject: [PATCH] Use ToTotem() in a case. --HG-- branch : trunk --- src/game/Unit.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index afcf7e1a44..f6b9438e82 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -3653,10 +3653,10 @@ void Unit::_UnapplyAura(AuraApplicationMap::iterator &i, AuraRemoveMode removeMo assert(!aurApp->GetEffectMask()); // Remove totem at next update if totem looses its aura - if (aurApp->GetRemoveMode() == AURA_REMOVE_BY_EXPIRE && GetTypeId() == TYPEID_UNIT && this->ToCreature()->isTotem()&& ((TempSummon*)this)->GetSummonerGUID() == aura->GetCasterGUID()) + if (aurApp->GetRemoveMode() == AURA_REMOVE_BY_EXPIRE && GetTypeId() == TYPEID_UNIT && this->ToCreature()->isTotem()&& this->ToTotem()->GetSummonerGUID() == aura->GetCasterGUID()) { - if (this->ToTotem()->GetSpell() == aura->GetId() && this->ToTotem()->GetTotemType() == TOTEM_PASSIVE) - this->ToTotem()->setDeathState(JUST_DIED); + if (this->ToTotem()->GetSpell() == aura->GetId() && this->ToTotem()->GetTotemType() == TOTEM_PASSIVE) + this->ToTotem()->setDeathState(JUST_DIED); } // Remove aurastates only if were not found