diff --git a/app/scripts/sandbox/command_sync.gd b/app/scripts/sandbox/command_sync.gd index 918aec7..3736aa0 100644 --- a/app/scripts/sandbox/command_sync.gd +++ b/app/scripts/sandbox/command_sync.gd @@ -63,3 +63,7 @@ func wrong_args_count(command: Command, right_count: int) -> bool: return true return false + + +func _exit_tree() -> void: + close() diff --git a/app/scripts/sandbox/input_sync.gd b/app/scripts/sandbox/input_sync.gd index db5e8a8..50ad82f 100644 --- a/app/scripts/sandbox/input_sync.gd +++ b/app/scripts/sandbox/input_sync.gd @@ -45,3 +45,9 @@ func get_scaled_mouse_pos(position : Vector2) -> Vector2: position.x *= scale_width position.y *= scale_height return position + + +func _exit_tree() -> void: + if input_sync != null: + input_sync.close() + input_sync = null diff --git a/godot b/godot index 36cbe3c..a3171b5 160000 --- a/godot +++ b/godot @@ -1 +1 @@ -Subproject commit 36cbe3cb18c96a196032159b4d2ec4993d7c9479 +Subproject commit a3171b5f2fd2df41d3476b76b65942ad32e0b2e1