From ded0841fa156ab3d0a0a67379746b8bf97956345 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 9 Jun 2023 03:08:15 +0300 Subject: [PATCH 19/19] 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 fbb6e78330..1ea9b65eaf 100644 --- a/ai/default/daimilitary.c +++ b/ai/default/daimilitary.c @@ -1562,7 +1562,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_base(pdef); def_vet = pdef->veteran; def_type = unit_type_get(pdef); -- 2.39.2