Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/component/node_state_machine/node_state_machine.gd
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func change_state(next_state: NodeStateMachineState):


func set_current_state(next_state: NodeStateMachineState):
if not get_parent().is_inside_tree():
if not is_inside_tree() or not get_parent().is_inside_tree():
queued_state = next_state
return

Expand Down
3 changes: 2 additions & 1 deletion src/project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ config_version=5

config/name="Project Template"
run/main_scene="uid://cygqjanirnqqt"
config/features=PackedStringArray("4.4", "GL Compatibility")
config/features=PackedStringArray("4.5", "GL Compatibility")
config/tags=PackedStringArray("100devs")

[autoload]

Expand Down
Loading