From a3f0ff94b521ea3f28882d5c4114d4a09b7de54f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Lach?= Date: Sat, 8 Jan 2022 19:39:25 +0100 Subject: [PATCH 2/3] - Checks ruleset compatibility --- server/savegame/savegame3.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/savegame/savegame3.c b/server/savegame/savegame3.c index df447b4653..b2a7bab6bc 100644 --- a/server/savegame/savegame3.c +++ b/server/savegame/savegame3.c @@ -2590,6 +2590,10 @@ static void sg_load_counters (struct loaddata * loading) int city_ccount = secfile_lookup_int_default(loading->file, 0, "savefile.city_counters_order_size"); + sg_failure_ret((counters_get_city_counters_count() == city_ccount), + _("Number of city counters in savegame and ruleset" + " differs. Ruleset changed?")); + countnames = secfile_lookup_str_vec(loading->file, &length, "savefile.city" -- 2.34.1