diff --git a/addons/escoria-core/game/esc_inputs_manager.gd b/addons/escoria-core/game/esc_inputs_manager.gd index 0d546c4b6..8c0928231 100644 --- a/addons/escoria-core/game/esc_inputs_manager.gd +++ b/addons/escoria-core/game/esc_inputs_manager.gd @@ -185,7 +185,7 @@ func unset_hovered_node(item: ESCItem): if _hovered_element == item: _hovered_element.mouse_exited() _hovered_element = null - if hover_stack.back(): + if not hover_stack.empty() and hover_stack.back(): set_hovered_node(hover_stack.pop_back()) else: hotspot_focused = ""