summaryrefslogtreecommitdiff
path: root/main
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 /main
parent53cf289f309ef44821e5bb1fe0c81de29a82d9d3 (diff)
Changed logic and optimized ObjectID in ObjectDB and Variant, removed RefPtr.
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 00ce8c6f7b..9f1d9ce5fe 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -1719,7 +1719,7 @@ bool Main::start() {
ERR_CONTINUE_MSG(obj == NULL, "Cannot instance script for autoload, expected 'Node' inheritance, got: " + String(ibt));
n = Object::cast_to<Node>(obj);
- n->set_script(script_res.get_ref_ptr());
+ n->set_script(script_res);
}
ERR_CONTINUE_MSG(!n, "Path in autoload not a node or script: " + path);