From 8f0b19e677b5ee1ac3e0d5a940c7fe888b9b5206 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 1 Jun 2023 03:49:36 +0300 Subject: [PATCH 6/6] Savegame: Fix loading acceptance of zero-clause treaties See osdn #48127 Signed-off-by: Marko Lindqvist --- server/savegame2.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/server/savegame2.c b/server/savegame2.c index 5214e322d0..9907604a0c 100644 --- a/server/savegame2.c +++ b/server/savegame2.c @@ -7285,14 +7285,14 @@ static void sg_load_treaties(struct loaddata *loading) add_clause(ptreaty, pgiver, type, value); } } - - /* These must be after clauses have been added so that acceptance - * does not get cleared by what seems like changes to the treaty. */ - ptreaty->accept0 = secfile_lookup_bool_default(loading->file, FALSE, - "treaty%d.accept0", tidx); - ptreaty->accept1 = secfile_lookup_bool_default(loading->file, FALSE, - "treaty%d.accept1", tidx); } + + /* These must be after clauses have been added so that acceptance + * does not get cleared by what seems like changes to the treaty. */ + ptreaty->accept0 = secfile_lookup_bool_default(loading->file, FALSE, + "treaty%d.accept0", tidx); + ptreaty->accept1 = secfile_lookup_bool_default(loading->file, FALSE, + "treaty%d.accept1", tidx); } } } -- 2.39.2