diff --git a/core/script_language.h b/core/script_language.h index 8c59a9e6b85..f4956accd34 100644 --- a/core/script_language.h +++ b/core/script_language.h @@ -246,7 +246,7 @@ public: virtual void set_request_scene_tree_message_func(RequestSceneTreeMessageFunc p_func, void *p_udata) {} ScriptDebugger(); - virtual ~ScriptDebugger() {} + virtual ~ScriptDebugger() {singleton=NULL;} };