From 09dcf673531930ae0193c7f295fe7df2c1dd204b Mon Sep 17 00:00:00 2001 From: yairm210 Date: Tue, 28 Jan 2025 22:10:07 +0200 Subject: [PATCH] Fixed textures not being built on new game from new game screen --- core/src/com/unciv/UncivGame.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/com/unciv/UncivGame.kt b/core/src/com/unciv/UncivGame.kt index ef9dc2bdfe..cc0445efbd 100644 --- a/core/src/com/unciv/UncivGame.kt +++ b/core/src/com/unciv/UncivGame.kt @@ -218,6 +218,7 @@ open class UncivGame(val isConsoleMode: Boolean = false) : Game(), PlatformSpeci for (screen in screenStack) screen.dispose() screenStack.clear() + ImageGetter.setNewRuleset(newGameInfo.ruleset) worldScreen = null // This allows the GC to collect our old WorldScreen, otherwise we keep two WorldScreens in memory. Gdx.input.inputProcessor = null // Avoid ANRs while loading val newWorldScreen = WorldScreen(newGameInfo, autoPlay, newGameInfo.getPlayerToViewAs(), worldScreenRestoreState)