소스 검색

Merge pull request #106307 from Rubonnek/improve_timer_error

Improve `Timer::start` error message.
Rémi Verschelde 3 달 전
부모
커밋
ef6d90b1e0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      scene/main/timer.cpp

+ 1 - 1
scene/main/timer.cpp

@@ -114,7 +114,7 @@ bool Timer::has_autostart() const {
 }
 
 void Timer::start(double p_time) {
-	ERR_FAIL_COND_MSG(!is_inside_tree(), "Timer was not added to the SceneTree. Either add it or set autostart to true.");
+	ERR_FAIL_COND_MSG(!is_inside_tree(), "Unable to start the timer because it's not inside the scene tree. Either add it or set autostart to true.");
 
 	if (p_time > 0) {
 		set_wait_time(p_time);