From bbd4ce5988a45b1548990a709b62071284ce502f Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 24 Sep 2022 02:15:57 +0300 Subject: [PATCH 22/22] Fix loading base building orders from < 2.3 savegames See osdn #45692 Signed-off-by: Marko Lindqvist --- server/legacysave.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/legacysave.c b/server/legacysave.c index 88cff69be2..7017a6d007 100644 --- a/server/legacysave.c +++ b/server/legacysave.c @@ -1620,10 +1620,10 @@ static void player_load_units(struct player *plr, int plrno, } else { log_error("Cannot find base %d for %s to build", base, unit_rule_name(punit)); - base = base_number(get_base_by_gui_type(BASE_GUI_FORTRESS, NULL, NULL)); + order_base = get_base_by_gui_type(BASE_GUI_FORTRESS, NULL, NULL); } - order->sub_target = extra_number(base_extra_get(base_by_number(base))); + order->sub_target = extra_number(base_extra_get(order_base)); } else { order->sub_target = EXTRA_NONE; } -- 2.35.1