Fixed "don't allow era select" if the game has no techs

This commit is contained in:
Yair Morgenstern
2024-05-22 23:01:33 +03:00
parent 860989571a
commit 6637ee73a4

View File

@ -408,7 +408,7 @@ class GameOptionsTable(
}
private fun Table.addEraSelectBox() {
if (ruleset.technologies.isEmpty()) return // mod with no techs
if (ruleset.eras.isEmpty()) return // mod with no techs
val eras = ruleset.eras.keys
addSelectBox("{Starting Era}:", eras, gameParameters.startingEra)
{ gameParameters.startingEra = it; null }