[mr2698] fix crush in PetAI::UpdateAI(). close #1327