Fixed crash in PetAI::UpdateAI.
--HG-- branch : trunk
This commit is contained in:
+3
-3
@@ -208,11 +208,11 @@ void PetAI::UpdateAI(const uint32 diff)
|
||||
if( !m_creature->HasInArc(M_PI, target) )
|
||||
{
|
||||
m_creature->SetInFront(target);
|
||||
if( target->GetTypeId() == TYPEID_PLAYER )
|
||||
m_creature->SendUpdateToPlayer( (Player*)target );
|
||||
if(target && target->GetTypeId() == TYPEID_PLAYER)
|
||||
m_creature->SendUpdateToPlayer((Player*)target);
|
||||
|
||||
if(owner && owner->GetTypeId() == TYPEID_PLAYER)
|
||||
m_creature->SendUpdateToPlayer( (Player*)owner );
|
||||
m_creature->SendUpdateToPlayer((Player*)owner);
|
||||
}
|
||||
|
||||
m_creature->AddCreatureSpellCooldown(spell->m_spellInfo->Id);
|
||||
|
||||
Reference in New Issue
Block a user