From 4ca32a052326d4d0c7c61c870cdb16b0042fd83f Mon Sep 17 00:00:00 2001 From: Duan Tao Date: Wed, 25 Sep 2019 18:57:47 +0800 Subject: [PATCH] Fix a code style bug that caused exception mentioned in last commit. --- core/src/com/unciv/logic/city/CityConstructions.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/com/unciv/logic/city/CityConstructions.kt b/core/src/com/unciv/logic/city/CityConstructions.kt index 1010e4aead..5fcf4467a9 100644 --- a/core/src/com/unciv/logic/city/CityConstructions.kt +++ b/core/src/com/unciv/logic/city/CityConstructions.kt @@ -61,9 +61,10 @@ class CityConstructions { val currentConstructionSnapshot = currentConstruction // See below var result = currentConstructionSnapshot.tr() if (currentConstructionSnapshot!="" - && SpecialConstruction.getSpecialConstructions().none { it.name==currentConstructionSnapshot }) + && SpecialConstruction.getSpecialConstructions().none { it.name==currentConstructionSnapshot }) { result += ("\r\nCost " + getConstruction(currentConstruction).getProductionCost(cityInfo.civInfo).toString()).tr() - result += "\r\n" + turnsToConstruction(currentConstructionSnapshot ) + " {turns}".tr() + result += "\r\n" + turnsToConstruction(currentConstructionSnapshot) + " {turns}".tr() + } return result }