Skip to content

Commit

Permalink
fix: necessary in order to prevent error message from printing out
Browse files Browse the repository at this point in the history
  • Loading branch information
BHSDuncan committed Dec 28, 2022
1 parent 7f1add6 commit 6842ed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/escoria-core/game/esc_inputs_manager.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down

0 comments on commit 6842ed4

Please sign in to comment.