bugfix: ItemOutline crashing

This commit is contained in:
eneko committed 2023-10-26 22:54:30 +02:00
1 parent 9c0af41ddd
commit 8138d3055b
1 file changed
+2
@@ -27,6 +27,8 @@ func highlight(value: bool):
func _process(_delta: float): func _process(_delta: float):
# if not escoria.action_manager.is_object_actionable(get_global_id()): # if not escoria.action_manager.is_object_actionable(get_global_id()):
# return # return
if not outline is ItemOutline:
return
if isHighlighted != lastHighlightState: if isHighlighted != lastHighlightState:
if isHighlighted: if isHighlighted:
outline.show() outline.show()