*Fix a crash for creatures using petAI without charminfo.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-20 09:39:25 -06:00
parent eea631a0a3
commit d944be8381
+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();