mirror of
https://github.com/yairm210/Unciv.git
synced 2025-08-03 00:29:18 +07:00
Fix bug related to resuming games (#7613)
This commit is contained in:

committed by
GitHub

parent
1dc7c6bfa8
commit
6309bbdcb6
@ -212,6 +212,7 @@ class MainMenuScreen: BaseScreen(), RecreateOnResize {
|
|||||||
val curWorldScreen = game.worldScreen
|
val curWorldScreen = game.worldScreen
|
||||||
if (curWorldScreen != null) {
|
if (curWorldScreen != null) {
|
||||||
game.resetToWorldScreen()
|
game.resetToWorldScreen()
|
||||||
|
ImageGetter.ruleset = game.gameInfo!!.ruleSet
|
||||||
curWorldScreen.popups.filterIsInstance(WorldScreenMenuPopup::class.java).forEach(Popup::close)
|
curWorldScreen.popups.filterIsInstance(WorldScreenMenuPopup::class.java).forEach(Popup::close)
|
||||||
} else {
|
} else {
|
||||||
QuickSave.autoLoadGame(this)
|
QuickSave.autoLoadGame(this)
|
||||||
|
Reference in New Issue
Block a user