From cb951da53e14209823ba62d1a335b90a3f9db7e3 Mon Sep 17 00:00:00 2001 From: Am-per-Sand <40436282+Am-per-Sand@users.noreply.github.com> Date: Tue, 23 Apr 2019 18:07:43 +0200 Subject: [PATCH] Fix negative turnsToNewPopulation while razing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit missing bracket, sorry I will never compile any programmes in my life, I will never learn Kotlin and will have a happy life. I wrote it by hand in the textarea on github.com 😎 --- core/src/com/unciv/logic/city/CityInfo.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/com/unciv/logic/city/CityInfo.kt b/core/src/com/unciv/logic/city/CityInfo.kt index c6f0a26624..9c6a3a578f 100644 --- a/core/src/com/unciv/logic/city/CityInfo.kt +++ b/core/src/com/unciv/logic/city/CityInfo.kt @@ -221,6 +221,7 @@ class CityInfo { if(population.foodStored>=population.getFoodToNextPopulation()) {//if surplus in the granary... population.foodStored=population.getFoodToNextPopulation()-1//...reduce below the new growth treshold } + } } else population.nextTurn(stats.food)