diff options
author | Juan Linietsky <juan@godotengine.org> | 2020-02-13 16:03:10 -0300 |
---|---|---|
committer | Juan Linietsky <juan@godotengine.org> | 2020-02-15 08:36:04 -0300 |
commit | 867d073b98344b848c96012418912a7e72841a31 (patch) | |
tree | 3a0fa22ce848b4ee20df2057ebb5eb5d7ea8e89b /core/os/main_loop.cpp | |
parent | 53cf289f309ef44821e5bb1fe0c81de29a82d9d3 (diff) | |
download | redot-engine-867d073b98344b848c96012418912a7e72841a31.tar.gz |
Changed logic and optimized ObjectID in ObjectDB and Variant, removed RefPtr.
Diffstat (limited to 'core/os/main_loop.cpp')
-rw-r--r-- | core/os/main_loop.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/os/main_loop.cpp b/core/os/main_loop.cpp index 5ecdd74a4b..6020c4b219 100644 --- a/core/os/main_loop.cpp +++ b/core/os/main_loop.cpp @@ -95,7 +95,7 @@ void MainLoop::input_event(const Ref<InputEvent> &p_event) { void MainLoop::init() { if (init_script.is_valid()) - set_script(init_script.get_ref_ptr()); + set_script(init_script); if (get_script_instance()) get_script_instance()->call("_initialize"); @@ -131,6 +131,6 @@ void MainLoop::finish() { if (get_script_instance()) { get_script_instance()->call("_finalize"); - set_script(RefPtr()); //clear script + set_script(Variant()); //clear script } } |