From 9346f6c527419780e3e2b00b88f0a466b86b168f Mon Sep 17 00:00:00 2001 From: yairm210 Date: Mon, 25 Aug 2025 11:33:14 +0300 Subject: [PATCH] Handle mods removing techs - remove from techsToResearch list --- core/src/com/unciv/logic/BackwardCompatibility.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/com/unciv/logic/BackwardCompatibility.kt b/core/src/com/unciv/logic/BackwardCompatibility.kt index 792bd3a3a4..b85b4a51e7 100644 --- a/core/src/com/unciv/logic/BackwardCompatibility.kt +++ b/core/src/com/unciv/logic/BackwardCompatibility.kt @@ -128,6 +128,11 @@ object BackwardCompatibility { for (tech in civInfo.tech.techsResearched.toList()) if (!ruleset.technologies.containsKey(tech)) civInfo.tech.techsResearched.remove(tech) + + for (tech in civInfo.tech.techsToResearch.toList()) + if (!ruleset.technologies.containsKey(tech)) + civInfo.tech.techsToResearch.remove(tech) + for (policy in civInfo.policies.adoptedPolicies.toList()) if (!ruleset.policies.containsKey(policy)) civInfo.policies.adoptedPolicies.remove(policy)