Fix bug related to resuming games (#7613)

This commit is contained in:
OptimizedForDensity 2022-08-05 08:01:57 -04:00 committed by GitHub
parent 1dc7c6bfa8
commit 6309bbdcb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -212,6 +212,7 @@ class MainMenuScreen: BaseScreen(), RecreateOnResize {
val curWorldScreen = game.worldScreen
if (curWorldScreen != null) {
game.resetToWorldScreen()
ImageGetter.ruleset = game.gameInfo!!.ruleSet
curWorldScreen.popups.filterIsInstance(WorldScreenMenuPopup::class.java).forEach(Popup::close)
} else {
QuickSave.autoLoadGame(this)