Merge pull request #778 from alessandrofama/4.x_fix_static_no_return
Fix crash when using static methods without return value due to uninitialized GDNativePropertyInfo struct memberspull/660/head
commit
794dea0dd7
|
@ -600,7 +600,11 @@ protected:
|
|||
|
||||
virtual GDNativePropertyInfo gen_argument_type_info(int p_arg) const {
|
||||
GDNativePropertyInfo pi;
|
||||
call_get_argument_type_info<P...>(p_arg, 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__)
|
||||
|
|
Loading…
Reference in New Issue