Fixed crash when providing free buildings (#5230)

This commit is contained in:
Xander Lenstra 2021-09-15 15:56:43 +02:00 committed by GitHub
parent f996103403
commit 51bfd927c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() }
//