From 8cf6a4360558345ffbf33d0ae4a8be8ea0ecefd5 Mon Sep 17 00:00:00 2001 From: Damjan94 Date: Wed, 27 Jun 2018 18:53:38 +0200 Subject: [PATCH] fixed the crash caused by missing curly braces (#181) --- core/src/com/unciv/logic/civilization/CivilizationInfo.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/com/unciv/logic/civilization/CivilizationInfo.kt b/core/src/com/unciv/logic/civilization/CivilizationInfo.kt index fd21d9a0ab..9ab13c8972 100644 --- a/core/src/com/unciv/logic/civilization/CivilizationInfo.kt +++ b/core/src/com/unciv/logic/civilization/CivilizationInfo.kt @@ -67,10 +67,10 @@ class CivilizationInfo { if (policies.isAdopted("Mandate Of Heaven")) - if (!statMap.containsKey("Policies")) + if (!statMap.containsKey("Policies")) { statMap["Policies"] = Stats() - statMap["Policies"]!!.culture += statMap.values.map { it.happiness }.sum()/ 2 - + statMap["Policies"]!!.culture += statMap.values.map { it.happiness }.sum() / 2 + } // if we have - or 0, then the techs will never be complete and the tech button // will show a negative number of turns and int.max, respectively