aboutsummaryrefslogtreecommitdiff
path: root/src/game/PetAI.cpp
diff options
context:
space:
mode:
authorn0n4m3 <none@none>2009-12-19 17:58:45 +0100
committern0n4m3 <none@none>2009-12-19 17:58:45 +0100
commitef2cbee517417814d2f5fe5afb4148fb8804b4b2 (patch)
tree6fb1d2eefe156d62ee4d23c4d17384cf79492630 /src/game/PetAI.cpp
parent57bdbdc0ca8e867520de9927389edb703a04c43a (diff)
Avoid not needed too oftent send update data, cleanups. by SilverIce
--HG-- branch : trunk
Diffstat (limited to 'src/game/PetAI.cpp')
-rw-r--r--src/game/PetAI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/PetAI.cpp b/src/game/PetAI.cpp
index fc305d5f122..bb69e1a0241 100644
--- a/src/game/PetAI.cpp
+++ b/src/game/PetAI.cpp
@@ -208,10 +208,10 @@ void PetAI::UpdateAI(const uint32 diff)
{
m_creature->SetInFront(target);
if( target->GetTypeId() == TYPEID_PLAYER )
- m_creature->SendUpdateToPlayer( (Player*)target );
+ m_creature->SendCreateUpdateToPlayer( (Player*)target );
if(owner && owner->GetTypeId() == TYPEID_PLAYER)
- m_creature->SendUpdateToPlayer( (Player*)owner );
+ m_creature->SendCreateUpdateToPlayer( (Player*)owner );
}
m_creature->AddCreatureSpellCooldown(spell->m_spellInfo->Id);