From b88e9ef1160a667a8132db1abdcedc106ab142c2 Mon Sep 17 00:00:00 2001 From: yairm210 Date: Tue, 29 Oct 2024 23:10:53 +0200 Subject: [PATCH] Resource uniques are initialized correctly --- .../logic/civilization/transients/CivInfoTransientCache.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/civilization/transients/CivInfoTransientCache.kt b/core/src/com/unciv/logic/civilization/transients/CivInfoTransientCache.kt index 072a895f2ae01..c3f7d46957fc5 100644 --- a/core/src/com/unciv/logic/civilization/transients/CivInfoTransientCache.kt +++ b/core/src/com/unciv/logic/civilization/transients/CivInfoTransientCache.kt @@ -359,7 +359,7 @@ class CivInfoTransientCache(val civInfo: Civilization) { val summarizedResourceSupply = newDetailedCivResources.sumByResource("All") val newResourceUniqueMap = UniqueMap() - for (resource in civInfo.summarizedCivResourceSupply) + for (resource in summarizedResourceSupply) if (resource.amount > 0) newResourceUniqueMap.addUniques(resource.resource.uniqueObjects)