mirror of
https://gitlab.com/open-fpsz/open-fpsz.git
synced 2026-01-19 19:44:46 +00:00
Apply 1 suggestion(s) to 1 file(s)
This commit is contained in:
parent
82e0e8fa13
commit
cd96f3fd0f
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue