From 8c1913c2c4f2cf95a373e565f92e13db499bd27e Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Wed, 7 Oct 2020 14:03:27 +0300 Subject: [PATCH] Total conversion mods should handle missing specialists (altough they really should deal with it) --- core/src/com/unciv/logic/city/CityInfo.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/city/CityInfo.kt b/core/src/com/unciv/logic/city/CityInfo.kt index 3cffcd89d1..62a599031a 100644 --- a/core/src/com/unciv/logic/city/CityInfo.kt +++ b/core/src/com/unciv/logic/city/CityInfo.kt @@ -246,7 +246,8 @@ class CityInfo { fun getGreatPersonMap():StatMap { val stats = StatMap() for((specialist, amount) in population.getNewSpecialists()) - stats.add("Specialists", getRuleset().specialists[specialist]!!.greatPersonPoints.times(amount)) + if (getRuleset().specialists.containsKey(specialist)) // To solve problems in total remake mods + stats.add("Specialists", getRuleset().specialists[specialist]!!.greatPersonPoints.times(amount)) val buildingStats = Stats() for (building in cityConstructions.getBuiltBuildings())