AI server: fixed a crash in CNpc::SetDamage()