From cb127b86f47dd732ffedc782038fec69930687d0 Mon Sep 17 00:00:00 2001 From: marynate Date: Tue, 15 Jul 2014 11:22:24 +0800 Subject: [PATCH] Fixed failed to connect to remote debugger with -rdebug will crash engine --- core/script_language.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;} };