Added more details in Timer.start() error message.

This commit is contained in:
x2f 2019-11-27 10:34:54 -05:00 committed by x2f
parent a87e2f85ee
commit f085110b20

View file

@ -108,7 +108,7 @@ bool Timer::has_autostart() const {
void Timer::start(float p_time) { 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) { if (p_time > 0) {
set_wait_time(p_time); set_wait_time(p_time);