*Backport a crash fix of petai.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-22 11:44:07 -06:00
parent 763c81de3c
commit f703449242
+3
View File
@@ -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();