From 713c5968b8920beead04160f5d8a9f86a19fab62 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Tue, 29 Aug 2023 22:51:07 +0300 Subject: [PATCH] Performance: No need to calculate stats before reassigning population, since it's done there anyway --- core/src/com/unciv/logic/civilization/managers/TechManager.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/com/unciv/logic/civilization/managers/TechManager.kt b/core/src/com/unciv/logic/civilization/managers/TechManager.kt index ce1a4bd2c6..64a9fe10c9 100644 --- a/core/src/com/unciv/logic/civilization/managers/TechManager.kt +++ b/core/src/com/unciv/logic/civilization/managers/TechManager.kt @@ -300,8 +300,7 @@ class TechManager : IsPartOfGameInfoSerialization { updateTransientBooleans() for (city in civInfo.cities) { - city.cityStats.update() - city.reassignPopulationDeferred() + city.reassignPopulationDeferred() } if (!civInfo.isSpectator() && showNotification)