From 756431ee741863934497996f61e66cb016561bb4 Mon Sep 17 00:00:00 2001 From: Oskar Niesen Date: Mon, 14 Aug 2023 08:14:45 -0500 Subject: [PATCH] Fixed GameStarter adding gold to spectator Civilization on later eras when it shouldn't. (#9901) --- core/src/com/unciv/logic/GameStarter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/GameStarter.kt b/core/src/com/unciv/logic/GameStarter.kt index c24f03604d..3aa52f3bad 100644 --- a/core/src/com/unciv/logic/GameStarter.kt +++ b/core/src/com/unciv/logic/GameStarter.kt @@ -227,7 +227,7 @@ object GameStarter { val ruleSet = gameInfo.ruleset val startingEra = gameInfo.gameParameters.startingEra val era = ruleSet.eras[startingEra]!! - for (civInfo in gameInfo.civilizations.filter { !it.isBarbarian() }) { + for (civInfo in gameInfo.civilizations.filter { !it.isBarbarian() && !it.isSpectator() }) { civInfo.addGold((era.startingGold * gameInfo.speed.goldCostModifier).toInt()) civInfo.policies.addCulture((era.startingCulture * gameInfo.speed.cultureCostModifier).toInt()) }