From 4482593653dc52a0f97e4a3ffcc472c6e71156a2 Mon Sep 17 00:00:00 2001 From: ApoC Date: Sun, 26 Oct 2008 21:07:02 +0100 Subject: [PATCH] Fixed posible crash in my prev. commit thx. to Hanuza who point it out. Signed-off-by: ApoC --- src/game/SpellEffects.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 263988d73..6525efecf 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -4040,10 +4040,6 @@ void Spell::EffectSummonPet(uint32 i) uint32 faction = m_caster->getFaction(); if(m_caster->GetTypeId() == TYPEID_UNIT) { - Unit* owner = ((Totem*)m_caster)->GetOwner(); - if(owner) - faction = owner->getFaction(); - if ( ((Creature*)m_caster)->isTotem() ) NewSummon->GetCharmInfo()->SetReactState(REACT_AGGRESSIVE); else