mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
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:
parent
687a9bc8ce
commit
4482593653
1 changed files with 0 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue