From a6303b70a5d87e4d86acff051badbc5a09f116bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20J=2E=20Est=C3=A9banez?= Date: Sun, 8 Aug 2021 12:53:30 +0200 Subject: Fix logic to allow default null thread argument --- core/core_bind.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/core_bind.cpp b/core/core_bind.cpp index 6f6c4056a9..05fc309a28 100644 --- a/core/core_bind.cpp +++ b/core/core_bind.cpp @@ -1787,7 +1787,7 @@ void _Thread::_start_func(void *ud) { target_param_count = method->get_argument_count(); target_default_arg_count = method->get_default_argument_count(); } - if (target_param_count >= 1 && target_default_arg_count == target_param_count) { + if (target_param_count >= 1 && target_default_arg_count < target_param_count) { argc = 1; } } -- cgit v1.2.3