3.18.8-patch1

Resolved #5774 - removed demanded resource from city when resource is not in ruleset
This commit is contained in:
yairm210 2021-12-09 20:37:37 +02:00
parent 3dfb0aec70
commit f3378f4ced
2 changed files with 5 additions and 1 deletions

View File

@ -4,7 +4,7 @@ object BuildConfig {
const val kotlinVersion = "1.5.30"
const val appName = "Unciv"
const val appCodeNumber = 654
const val appVersion = "3.18.8"
const val appVersion = "3.18.8-patch1"
const val gdxVersion = "1.10.0"
const val roboVMVersion = "2.3.1"

View File

@ -429,6 +429,10 @@ class GameInfo {
if (cityInfo.isPuppet && cityInfo.cityConstructions.constructionQueue.isEmpty())
cityInfo.cityConstructions.chooseNextConstruction()
// We also remove resources that the city may be demanding but are no longer in the ruleset
if (!ruleSet.tileResources.containsKey(cityInfo.demandedResource))
cityInfo.demandedResource = ""
cityInfo.cityStats.update()
}