summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-11-27 20:50:26 +0100
committerGitHub <noreply@github.com>2019-11-27 20:50:26 +0100
commit1af9701caacc0739f4817b0bf39f46ff6d90a146 (patch)
tree517bb50cf21b58247080a621534ece2c9e22c63a
parentaae9e11a1e1857bdaedacabb5a6ed89bcd8c8ca2 (diff)
parentf085110b206736c6832f852cc455cc3f97f02a08 (diff)
Merge pull request #33944 from x2f/patch-1
Added more details in Timer.start() error message.
-rwxr-xr-xscene/main/timer.cpp2
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);