diff --git a/core/src/com/unciv/logic/civilization/CityStateFunctions.kt b/core/src/com/unciv/logic/civilization/CityStateFunctions.kt index 6f8917e1b3..efb8615a59 100644 --- a/core/src/com/unciv/logic/civilization/CityStateFunctions.kt +++ b/core/src/com/unciv/logic/civilization/CityStateFunctions.kt @@ -49,7 +49,7 @@ class CityStateFunctions(val civInfo: CivilizationInfo) { // Mercantile bonus resources if (allPossibleBonuses.any { it.isOfType(UniqueType.CityStateUniqueLuxury) } || (fallback && cityStateType == CityStateType.Mercantile)) { // Fallback for badly defined Eras.json - civInfo.cityStateResource = allMercantileResources.random() + civInfo.cityStateResource = allMercantileResources.randomOrNull() } // Unique unit for militaristic city-states