Merge pull request #33944 from x2f/patch-1

Added more details in Timer.start() error message.
This commit is contained in:
Rémi Verschelde 2019-11-27 20:50:26 +01:00 committed by GitHub
commit 1af9701caa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);