From 3d1bc095a3d4cbe0d8db81a8ce36307d24370d3e Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 18 Jun 2022 06:40:43 +0300 Subject: [PATCH 48/48] Sanity check research techs_researched count See osdn #44594 Signed-off-by: Marko Lindqvist --- server/sanitycheck.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/sanitycheck.c b/server/sanitycheck.c index 09d1e9b2d7..31272187f0 100644 --- a/server/sanitycheck.c +++ b/server/sanitycheck.c @@ -636,6 +636,8 @@ check_researches(const char *file, const char *function, int line) SANITY_CHECK(A_UNSET == presearch->tech_goal || (A_NONE != presearch->tech_goal && valid_advance_by_number(presearch->tech_goal))); + SANITY_CHECK(presearch->techs_researched + == recalculate_techs_researched(presearch)); } researches_iterate_end; } -- 2.35.1