From 488f12be9cdb157b259e56af29885571bcb602d2 Mon Sep 17 00:00:00 2001 From: Timo T Date: Sat, 18 Jun 2022 20:50:34 +0200 Subject: [PATCH] Fix civilopedia not showing any victory type entries when opening it without any game open (#7194) --- core/src/com/unciv/ui/civilopedia/CivilopediaScreen.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/civilopedia/CivilopediaScreen.kt b/core/src/com/unciv/ui/civilopedia/CivilopediaScreen.kt index fafa649b74..5d2d5c5994 100644 --- a/core/src/com/unciv/ui/civilopedia/CivilopediaScreen.kt +++ b/core/src/com/unciv/ui/civilopedia/CivilopediaScreen.kt @@ -185,7 +185,7 @@ class CivilopediaScreen( val curGameInfo = game.gameInfo val religionEnabled = if (curGameInfo != null) curGameInfo.isReligionEnabled() else ruleset.beliefs.isNotEmpty() - val victoryTypes = if (curGameInfo != null) curGameInfo.gameParameters.victoryTypes else emptyList() + val victoryTypes = if (curGameInfo != null) curGameInfo.gameParameters.victoryTypes else ruleset.victories.keys fun shouldBeDisplayed(obj: IHasUniques): Boolean { return when {