mirror of
https://gitlab.com/open-fpsz/open-fpsz.git
synced 2026-07-16 08:55:33 +00:00
Apply 1 suggestion(s) to 1 file(s)
This commit is contained in:
parent
82e0e8fa13
commit
cd96f3fd0f
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ const _max_items = 3
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
# make sure a child is selected if any
|
# 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)
|
selected = get_child(0)
|
||||||
# make sure this inventory is linked to its owner
|
# make sure this inventory is linked to its owner
|
||||||
if not owner.inventory:
|
if not owner.inventory:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue