diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-11-27 20:50:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-27 20:50:26 +0100 |
commit | 1af9701caacc0739f4817b0bf39f46ff6d90a146 (patch) | |
tree | 517bb50cf21b58247080a621534ece2c9e22c63a | |
parent | aae9e11a1e1857bdaedacabb5a6ed89bcd8c8ca2 (diff) | |
parent | f085110b206736c6832f852cc455cc3f97f02a08 (diff) |
Merge pull request #33944 from x2f/patch-1
Added more details in Timer.start() error message.
-rwxr-xr-x | scene/main/timer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/timer.cpp b/scene/main/timer.cpp index 14cc705edb..da96c6e89c 100755 --- a/scene/main/timer.cpp +++ b/scene/main/timer.cpp @@ -108,7 +108,7 @@ bool Timer::has_autostart() const { void Timer::start(float p_time) { - ERR_FAIL_COND_MSG(!is_inside_tree(), "Timer was not added to the SceneTree!"); + ERR_FAIL_COND_MSG(!is_inside_tree(), "Timer was not added to the SceneTree. Either add it or set autostart to true."); if (p_time > 0) { set_wait_time(p_time); |