From e978b2ad1b971d28cd764c3bb00ced99cdf7364e Mon Sep 17 00:00:00 2001 From: Vasilii Rogin Date: Mon, 9 Oct 2023 18:44:01 +0300 Subject: [PATCH] Fix wrong pointer dereferecing in aiFindAttackers --- 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; }