Apply 1 suggestion(s) to 1 file(s)

This commit is contained in:
anyreso 2024-04-30 23:25:02 +00:00
parent 82e0e8fa13
commit cd96f3fd0f

View file

@ -25,7 +25,7 @@ const _max_items = 3
func _ready() -> void:
# make sure a child is selected if any
if not selected and get_child_count():
if not selected and get_child_count() > 0:
selected = get_child(0)
# make sure this inventory is linked to its owner
if not owner.inventory: