Fix civilopedia not showing any victory type entries when opening it without any game open (#7194)

This commit is contained in:
Timo T
2022-06-18 20:50:34 +02:00
committed by GitHub
parent 7481e5aa13
commit 488f12be9c

View File

@ -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 {