From 81fce5f4a29a51c983780225b9f0538573bea727 Mon Sep 17 00:00:00 2001 From: Vasilii Rogin Date: Mon, 9 Oct 2023 20:50:59 +0300 Subject: [PATCH] Fix wrong pointer dereferecing in aiFindAttackers (#324) --- 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 2110b9d..315f574 100644 --- a/src/combat_ai.cc +++ b/src/combat_ai.cc @@ -1464,7 +1464,7 @@ static int aiFindAttackers(Object* critter, Object** whoHitMePtr, Object** whoHi *whoHitFriendPtr = NULL; } - if (*whoHitByFriendPtr != NULL) { + if (whoHitByFriendPtr != NULL) { *whoHitByFriendPtr = NULL; }