From 92e5d817f768ff72b111186db8513d072b60710b Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 9 Jun 2023 03:04:13 +0300 Subject: [PATCH 17/17] AI: Fix dead 'vulnerability' assignment in kill_something_with() See osdn #48194 Signed-off-by: Marko Lindqvist --- ai/default/daimilitary.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ai/default/daimilitary.c b/ai/default/daimilitary.c index 943be01a5e..827c9932d4 100644 --- a/ai/default/daimilitary.c +++ b/ai/default/daimilitary.c @@ -1263,7 +1263,6 @@ static struct adv_choice *kill_something_with(struct ai_type *ait, city_owner(acity), ptile, FALSE, pdef->veteran); if (vulnerability < m) { - vulnerability = m; benefit = unit_build_shield_cost(pdef); def_vet = pdef->veteran; def_type = unit_type_get(pdef); -- 2.39.2