From f703449242949e387432bbc1b54a094f589f84ea Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 22 Mar 2009 11:44:07 -0600 Subject: *Backport a crash fix of petai. --HG-- branch : trunk --- src/game/PetAI.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/game/PetAI.cpp b/src/game/PetAI.cpp index 2ed3edb2df6..75c1aa06c20 100644 --- a/src/game/PetAI.cpp +++ b/src/game/PetAI.cpp @@ -123,6 +123,9 @@ void PetAI::UpdateAI(const uint32 diff) } } + if(!me->GetCharmInfo()) + return; + if (i_pet.GetGlobalCooldown() == 0 && !i_pet.hasUnitState(UNIT_STAT_CASTING)) { bool inCombat = me->getVictim(); -- cgit v1.2.3