diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-04 16:46:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-04 16:46:05 +0100 |
commit | 8db6fb18c9ce401ddd0a7312b0c8a99aca238cdb (patch) | |
tree | 930657c6ab30877a636c3d930d11226109990e7b | |
parent | 9a1f244d77dd3ff3bdb119ab78a2236f331c9e2d (diff) | |
parent | ec94ceba145a334a096de1ebd39cad9e184279e6 (diff) |
Merge pull request #56484 from KoBeWi/your_callable_is_invalid
-rw-r--r-- | core/core_bind.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/core_bind.cpp b/core/core_bind.cpp index 5e3e4b3964..fd99aa7f00 100644 --- a/core/core_bind.cpp +++ b/core/core_bind.cpp @@ -1894,7 +1894,7 @@ void Thread::_start_func(void *ud) { Error Thread::start(const Callable &p_callable, const Variant &p_userdata, Priority p_priority) { ERR_FAIL_COND_V_MSG(is_started(), ERR_ALREADY_IN_USE, "Thread already started."); - ERR_FAIL_COND_V(p_callable.is_null(), ERR_INVALID_PARAMETER); + ERR_FAIL_COND_V(!p_callable.is_valid(), ERR_INVALID_PARAMETER); ERR_FAIL_INDEX_V(p_priority, PRIORITY_MAX, ERR_INVALID_PARAMETER); ret = Variant(); |