diff options
Diffstat (limited to 'scripts/turret.gd')
-rw-r--r-- | scripts/turret.gd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/turret.gd b/scripts/turret.gd index 59d6146..6fbddeb 100644 --- a/scripts/turret.gd +++ b/scripts/turret.gd @@ -21,7 +21,7 @@ var info : Dictionary var cooldown_timer = 0 func _ready(): - var root = get_tree().root.get_child(0) + var root = get_tree().root.get_node("world") _path = root.get_node("path") _enemies = root.get_node("enemies") _projectiles_holder = root.get_node("projectiles") |