From 247f76f07d68378120c8d01cfa244116f3ab8f66 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 24 Sep 2022 02:19:31 +0300 Subject: [PATCH 11/11] Fix loading base building orders from < 2.3 savegames See osdn #45692 Signed-off-by: Marko Lindqvist --- server/savegame.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/savegame.c b/server/savegame.c index 51fcfbf5ed..5aaf1376db 100644 --- a/server/savegame.c +++ b/server/savegame.c @@ -1604,10 +1604,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->target = extra_number(base_extra_get(base_by_number(base))); + order->target = extra_number(base_extra_get(order_base)); } else { order->target = EXTRA_NONE; } -- 2.35.1