From f4f3e1926ce0943dbfc88fc135ab34a29a9ae120 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sat, 14 May 2022 20:34:51 +0200 Subject: [PATCH] Document that autoloads must not be freed to avoid crashes (cherry picked from commit cb9b2b8c5d0281bc2a534a15a8fc361214d64bbe) --- tutorials/scripting/singletons_autoload.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tutorials/scripting/singletons_autoload.rst b/tutorials/scripting/singletons_autoload.rst index 04adbc7b5..13a5eedf7 100644 --- a/tutorials/scripting/singletons_autoload.rst +++ b/tutorials/scripting/singletons_autoload.rst @@ -99,6 +99,11 @@ you'll see the autoloaded nodes appear: .. image:: img/autoload_runtime.png +.. warning:: + + Autoloads must **not** be removed using ``free()`` or ``queue_free()`` at + runtime, or the engine will crash. + Custom scene switcher ---------------------