Fixed posible crash in my prev. commit

thx. to Hanuza who point it out.
Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
ApoC 2008-10-26 21:07:02 +01:00
parent 687a9bc8ce
commit 4482593653

View file

@ -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