From f8ca4e081522a4d0e87b8c67d96966f3b13a47bf Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 19 Feb 2023 23:11:44 +0200 Subject: [PATCH 21/21] rscompat_postprocess(): Drop unnecessary call to get action_auto_perf ACTION_AUTO_UPKEEP_GOLD auto performer is not modified at all, so don't fetch it for modifications. Fixed clang analyzer dead assignment warning. See osdn #47452 Signed-off-by: Marko Lindqvist --- server/rscompat.c | 1 - 1 file changed, 1 deletion(-) diff --git a/server/rscompat.c b/server/rscompat.c index 0166af5e93..6aaae0c1d0 100644 --- a/server/rscompat.c +++ b/server/rscompat.c @@ -408,7 +408,6 @@ void rscompat_postprocess(struct rscompat_info *info) game.info.muuk_food_wipe = TRUE; /* Can't pay gold upkeep! */ - auto_perf = action_auto_perf_slot_number(ACTION_AUTO_UPKEEP_GOLD); /* TODO: Should missing gold upkeep really be able to kill units with * the EvacuateFirst unit type flag? */ -- 2.39.1