From ec94ceba145a334a096de1ebd39cad9e184279e6 Mon Sep 17 00:00:00 2001 From: kobewi Date: Tue, 4 Jan 2022 14:44:47 +0100 Subject: [PATCH] Fix method validation in Thread --- core/core_bind.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core_bind.cpp b/core/core_bind.cpp index 5e3e4b39647..fd99aa7f00e 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();