We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d8a65ed + d894f48 commit 794dea0Copy full SHA for 794dea0
include/godot_cpp/core/method_bind.hpp
@@ -600,7 +600,11 @@ class MethodBindTS : public MethodBind {
600
601
virtual GDNativePropertyInfo gen_argument_type_info(int p_arg) const {
602
GDNativePropertyInfo pi;
603
- call_get_argument_type_info<P...>(p_arg, pi);
+ if (p_arg >= 0 && p_arg < (int)sizeof...(P)) {
604
+ call_get_argument_type_info<P...>(p_arg, pi);
605
+ } else {
606
+ pi = PropertyInfo();
607
+ }
608
return pi;
609
}
610
#if defined(__GNUC__) && !defined(__clang__)
0 commit comments