fix: necessary in order to prevent error message from printing out

This commit is contained in:
Duncan Brown
2022-12-23 23:50:28 -05:00
parent 7f1add6505
commit 6842ed48ea

View File

@@ -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 = ""