diff --git a/core/src/com/unciv/logic/city/CityInfo.kt b/core/src/com/unciv/logic/city/CityInfo.kt index 5193497e9e..960285149b 100644 --- a/core/src/com/unciv/logic/city/CityInfo.kt +++ b/core/src/com/unciv/logic/city/CityInfo.kt @@ -101,7 +101,6 @@ class CityInfo { val ruleset = civInfo.gameInfo.ruleSet val startingEra = civInfo.gameInfo.gameParameters.startingEra if (startingEra in ruleset.eras) { - population.setPopulation(ruleset.eras[startingEra]!!.settlerPopulation) for (building in ruleset.eras[startingEra]!!.settlerBuildings) { if (ruleset.buildings[building]!!.isBuildable(cityConstructions)) { cityConstructions.addBuilding(building) @@ -122,6 +121,8 @@ class CityInfo { tile.improvementInProgress = null workedTiles = hashSetOf() //reassign 1st working tile + if (startingEra in ruleset.eras) + population.setPopulation(ruleset.eras[startingEra]!!.settlerPopulation) population.autoAssignPopulation() cityStats.update() diff --git a/core/src/com/unciv/ui/pickerscreens/TechPickerScreen.kt b/core/src/com/unciv/ui/pickerscreens/TechPickerScreen.kt index 5b795e54d8..1a7a3b1ad0 100644 --- a/core/src/com/unciv/ui/pickerscreens/TechPickerScreen.kt +++ b/core/src/com/unciv/ui/pickerscreens/TechPickerScreen.kt @@ -265,7 +265,7 @@ class TechPickerScreen(internal val civInfo: CivilizationInfo, centerOnTech: Tec private fun getTechProgressLabel(techs: List): String { val progress = techs.sumBy { tech -> civTech.scienceSpentOnTech(tech) } - val techCost = techs.sumBy { tech -> civInfo.gameInfo.ruleSet.technologies[tech]!!.cost } + val techCost = techs.sumBy { tech -> civInfo.tech.costOfTech(tech) } return "(${progress}/${techCost})" }