diff --git a/src/combat_ai.cc b/src/combat_ai.cc index 0b2940d..d9210d3 100644 --- a/src/combat_ai.cc +++ b/src/combat_ai.cc @@ -3593,7 +3593,7 @@ void _combatai_notify_onlookers(Object* a1) if (isWithinPerception(obj, a1)) { obj->data.critter.combat.maneuver |= CRITTER_MANEUVER_ENGAGING; if ((a1->data.critter.combat.results & DAM_DEAD) != 0) { - if (!isWithinPerception(obj, obj->data.critter.combat.whoHitMe)) { + if (!isWithinPerception(obj, a1->data.critter.combat.whoHitMe)) { debugPrint("\nSomebody Died and I don't know why! Run!!!"); aiInfoSetFriendlyDead(obj, a1); }