diff --git a/core/src/com/unciv/logic/automation/NextTurnAutomation.kt b/core/src/com/unciv/logic/automation/NextTurnAutomation.kt index b5bc71bf53..3c9066713b 100644 --- a/core/src/com/unciv/logic/automation/NextTurnAutomation.kt +++ b/core/src/com/unciv/logic/automation/NextTurnAutomation.kt @@ -117,6 +117,7 @@ class NextTurnAutomation{ private fun reassignWorkedTiles(civInfo: CivilizationInfo) { for (city in civInfo.cities) { city.workedTiles.clear() + city.population.specialists.clear() (0..city.population.population).forEach { city.population.autoAssignPopulation() } Automation().chooseNextConstruction(city.cityConstructions) if (city.health < city.getMaxHealth()) diff --git a/core/src/com/unciv/models/stats/Stats.kt b/core/src/com/unciv/models/stats/Stats.kt index b69a6d2d3d..a18ec5f7db 100644 --- a/core/src/com/unciv/models/stats/Stats.kt +++ b/core/src/com/unciv/models/stats/Stats.kt @@ -15,6 +15,15 @@ open class Stats() { setStats(hashMap) } + fun clear() { + production = 0f + food = 0f + gold = 0f + science = 0f + culture = 0f + happiness = 0f + } + fun add(other: Stats) { // Doing this through the hashmap is nicer code but is SUPER INEFFICIENT! production += other.production