From 3e671ea6cba7f976076e737b082971a94a6c6f23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= Date: Tue, 14 Jul 2026 12:59:40 -0300 Subject: [PATCH] GameState: Set scene when not persisting progress When progress is not persisted, that is when the game runs from a specific scene that is not the main one, GameState.scene should be set to a new PerSceneState resource. Otherwise the game may fail to access its properties like lights_on. Fix https://github.com/endlessm/threadbare/issues/2543 --- scenes/globals/game_state/game_state.gd | 1 + 1 file changed, 1 insertion(+) diff --git a/scenes/globals/game_state/game_state.gd b/scenes/globals/game_state/game_state.gd index 51ddd058f..4cb12e239 100644 --- a/scenes/globals/game_state/game_state.gd +++ b/scenes/globals/game_state/game_state.gd @@ -82,6 +82,7 @@ func _ready() -> void: if not persist_progress: if current_scene: guess_quest(current_scene.scene_file_path) + set_scene(current_scene.scene_file_path) # Grant all debug player abilities: for ability: Enums.PlayerAbilities in DEBUG_PLAYER_ABILITIES: player.set_ability(ability, true)