mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-26 13:27:22 -04:00
Fix civilopedia not showing any victory type entries when opening it without any game open (#7194)
This commit is contained in:
parent
7481e5aa13
commit
488f12be9c
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user