summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorx2f <10355421+x2f@users.noreply.github.com>2019-11-27 10:34:54 -0500
committerx2f <xavier.defoy@interdigital.com>2019-11-27 14:11:15 -0500
commitf085110b206736c6832f852cc455cc3f97f02a08 (patch)
tree449ab469e0734da81828de1704d229d2f9ad032e
parenta87e2f85ee838245f0d5e702561faa3502b14800 (diff)
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);