fix: avoid typed @onready infer crash for MovementStateMachine

player_movement_controller.gd: use Node + get_node() instead of
typed MovementStateMachine + $ shorthand so runtime set_script paths
don't crash on @implicit_ready
This commit is contained in:
2026-06-03 00:33:16 -04:00
parent dfed237a63
commit 872201aa85
+1 -1
View File
@@ -27,7 +27,7 @@ func _unhandled_input(event: InputEvent) -> void:
_machine.input_dir = input_v _machine.input_dir = input_v
@onready var _machine: MovementStateMachine = $MovementStateMachine @onready var _machine: Node = get_node("MovementStateMachine")
func _ready() -> void: func _ready() -> void: