summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-08-08 13:58:13 +0200
committerGitHub <noreply@github.com>2021-08-08 13:58:13 +0200
commitbd94aa3c9e54ed5724c1067a41f15a706de572c5 (patch)
tree61d8cfbf7134c175664d8b086c8f31f1214dd06e /core
parentff52996e5843ffbc48dfe6b5702f32cd65dac548 (diff)
parenta6303b70a5d87e4d86acff051badbc5a09f116bf (diff)
Merge pull request #51385 from RandomShaper/fix_thread_default_null
Fix logic to allow default null thread argument
Diffstat (limited to 'core')
-rw-r--r--core/core_bind.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}
}