From 51bfd927c19009f53815d51bc59a61423a0d9627 Mon Sep 17 00:00:00 2001 From: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> Date: Wed, 15 Sep 2021 15:56:43 +0200 Subject: [PATCH] Fixed crash when providing free buildings (#5230) --- core/src/com/unciv/logic/civilization/CivConstructions.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/civilization/CivConstructions.kt b/core/src/com/unciv/logic/civilization/CivConstructions.kt index 997d507e5c..64c2a154a4 100644 --- a/core/src/com/unciv/logic/civilization/CivConstructions.kt +++ b/core/src/com/unciv/logic/civilization/CivConstructions.kt @@ -115,7 +115,7 @@ class CivConstructions() { // Deprecated since 3.16.15 statUniquesData[Stat.Culture] = (statUniquesData[Stat.Culture] ?: 0) + civInfo.getMatchingUniques("Immediately creates the cheapest available cultural building in each of your first [] cities for free") - .sumOf { it.params[1].toInt() } + .sumOf { it.params[0].toInt() } //