Fix crash when using static methods without return value

pull/778/head
Alessandro Famà 2022-06-28 20:36:47 +02:00
parent d8a65edc4a
commit d894f48f25
1 changed files with 5 additions and 1 deletions

View File

@ -600,7 +600,11 @@ protected:
virtual GDNativePropertyInfo gen_argument_type_info(int p_arg) const {
GDNativePropertyInfo pi;
if (p_arg >= 0 && p_arg < (int)sizeof...(P)) {
call_get_argument_type_info<P...>(p_arg, pi);
} else {
pi = PropertyInfo();
}
return pi;
}
#if defined(__GNUC__) && !defined(__clang__)