From ed7176b796f6a7206fb3bafa599c2185fa8c3684 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Mon, 16 Jan 2023 16:55:31 +0300 Subject: [PATCH] Fix combatai_notify_onlookers --- src/combat_ai.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }