From 58efa14c4131005ab7a61c7145350a00bbb33a72 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C5=82awomir=20Lach?= <slawek@lach.art.pl>
Date: Sat, 24 Sep 2022 13:44:05 +0200
Subject: [PATCH] =?UTF-8?q?!OSDN=2045603:=20S=C5=82awomir=20Lach=20<slawek?=
 =?UTF-8?q?@lach.art.pl>?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Stop saving "game.hardcoded_counters" + ensure game save will load after
this change.

diff --git a/server/savegame/savecompat.c b/server/savegame/savecompat.c
index a4ea88f983..80da23de25 100644
--- a/server/savegame/savecompat.c
+++ b/server/savegame/savecompat.c
@@ -2752,6 +2752,7 @@ static void compat_load_dev(struct loaddata *loading)
       }
     }
 
+    (void) secfile_entry_lookup(loading->file, "game.hardcoded_counters");
   } /* Version < 3.1.93 */
 
 #endif /* FREECIV_DEV_SAVE_COMPAT_3_2 */
diff --git a/server/savegame/savegame3.c b/server/savegame/savegame3.c
index f98d6f8647..7538c05817 100644
--- a/server/savegame/savegame3.c
+++ b/server/savegame/savegame3.c
@@ -2654,9 +2654,6 @@ static void sg_save_counters(struct savedata *saving)
   count = counters_get_city_counters_count();
   countnames = fc_calloc(count, sizeof(*countnames));
 
-  secfile_insert_bool(saving->file, TRUE, "game.hardcoded_counters");
-
-
   secfile_insert_int(saving->file, count,
                      "savefile.city_counters_order_size");
 
-- 
2.37.3

