aboutsummaryrefslogtreecommitdiff
path: root/scene/main/timer.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2014-11-05 21:20:42 -0300
committerJuan Linietsky2014-11-05 21:20:42 -0300
commit0dbedd18fc62f700e92a4cf581e505d849bc47ad (patch)
tree8f2c85b4d9227e441fd35ab4873009faa656bcba /scene/main/timer.cpp
parentd14baf6e41bcdbe4968e0513beccc09dfb160ecd (diff)
downloadgodot-0dbedd18fc62f700e92a4cf581e505d849bc47ad.tar.gz
godot-0dbedd18fc62f700e92a4cf581e505d849bc47ad.tar.zst
godot-0dbedd18fc62f700e92a4cf581e505d849bc47ad.zip
Diffstat (limited to 'scene/main/timer.cpp')
-rw-r--r--scene/main/timer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/timer.cpp b/scene/main/timer.cpp
index 8e80f868c..2ae918f3f 100644
--- a/scene/main/timer.cpp
+++ b/scene/main/timer.cpp
@@ -38,7 +38,7 @@ void Timer::_notification(int p_what) {
if (autostart) {
#ifdef TOOLS_ENABLED
- if (get_scene()->is_editor_hint() && get_scene()->get_edited_scene_root() && (get_scene()->get_edited_scene_root()==this || get_scene()->get_edited_scene_root()->is_a_parent_of(this)))
+ if (get_tree()->is_editor_hint() && get_tree()->get_edited_scene_root() && (get_tree()->get_edited_scene_root()==this || get_tree()->get_edited_scene_root()->is_a_parent_of(this)))
break;
#endif start();
}