mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-11 18:39:43 +07:00
Fix era of Wonders without tech in Wonder overview (#5347)
This commit is contained in:
parent
d3868dae62
commit
070c41592f
@ -115,7 +115,7 @@ class WonderOverviewTable(
|
||||
val wonderEraMap: Map<String, Era> =
|
||||
ruleSet.buildings.values.asSequence()
|
||||
.filter { it.isWonder }
|
||||
.map { it.name to ruleSet.eras[ruleSet.technologies[it.requiredTech]?.era()]!! }
|
||||
.map { it.name to (ruleSet.eras[ruleSet.technologies[it.requiredTech]?.era()] ?: viewingPlayer.getEra()) }
|
||||
.toMap()
|
||||
|
||||
// Maps all World Wonders by their position in sort order to their name
|
||||
|
Loading…
Reference in New Issue
Block a user