aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnubisss <none@none>2010-03-27 16:21:37 +0100
committerAnubisss <none@none>2010-03-27 16:21:37 +0100
commitd9de0874ae9e198b8bf97113e7053890fc8119e3 (patch)
treef2a783abbeec47c0575b72100831405ad75139ea
parentce8cc85dfabeb57c30f2f2e6deb577abeaabaf37 (diff)
Use ToTotem() in a case.
--HG-- branch : trunk
-rw-r--r--src/game/Unit.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index afcf7e1a44f..f6b9438e828 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