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