Fix rare crash opening overview on turn 0 (#12056)

This commit is contained in:
SomeTroglodyte
2024-08-03 22:19:28 +02:00
committed by GitHub
parent 76671ff6b6
commit d37f30a67c

View File

@ -237,6 +237,7 @@ class ResourcesOverviewTab(
row()
}
if (rows == 0) return // can happen when opening overview on turn 0 before founding a city
equalizeColumns(fixedContent, this)
overviewScreen.resizePage(this) // Without the height is miscalculated - shouldn't be
}