mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-20 09:17:47 +07:00
fixed the crash caused by missing curly braces (#181)
This commit is contained in:
parent
7836f6237f
commit
8cf6a43605
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user