mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-30 14:48:56 +07:00
Fix civilopedia not showing any victory type entries when opening it without any game open (#7194)
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user