summaryrefslogtreecommitdiff
path: root/editor/script_editor_debugger.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <juan@godotengine.org>2020-02-13 16:03:10 -0300
committerJuan Linietsky <juan@godotengine.org>2020-02-15 08:36:04 -0300
commit867d073b98344b848c96012418912a7e72841a31 (patch)
tree3a0fa22ce848b4ee20df2057ebb5eb5d7ea8e89b /editor/script_editor_debugger.cpp
parent53cf289f309ef44821e5bb1fe0c81de29a82d9d3 (diff)
Changed logic and optimized ObjectID in ObjectDB and Variant, removed RefPtr.
Diffstat (limited to 'editor/script_editor_debugger.cpp')
-rw-r--r--editor/script_editor_debugger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/script_editor_debugger.cpp b/editor/script_editor_debugger.cpp
index 2b28aa87a3..88d45d5dde 100644
--- a/editor/script_editor_debugger.cpp
+++ b/editor/script_editor_debugger.cpp
@@ -619,7 +619,7 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da
if (pinfo.hint_string == "Script") {
if (debugObj->get_script() != var) {
- debugObj->set_script(RefPtr());
+ debugObj->set_script(REF());
Ref<Script> script(var);
if (!script.is_null()) {
ScriptInstance *script_instance = script->placeholder_instance_create(debugObj);