mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-07 00:41:39 +07:00
Fix border case crash with lone AI winning on turn 0 (#9280)
This commit is contained in:
@ -22,6 +22,10 @@ class VictoryScreenDemographics(
|
||||
buildDemographicsHeaders()
|
||||
|
||||
for (rankLabel in RankLabels.values()) {
|
||||
if (rankLabel == RankLabels.Value) {
|
||||
// playerCiv is not necessarily alive nor major, and the `first` below would throw
|
||||
if (playerCiv.isDefeated() || !playerCiv.isMajorCiv()) continue
|
||||
}
|
||||
row()
|
||||
add(rankLabel.name.toLabel())
|
||||
|
||||
|
Reference in New Issue
Block a user