From cb9b2b8c5d0281bc2a534a15a8fc361214d64bbe 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 --- 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 321968827..4e7a49ed1 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 ---------------------