Cast Variant::Type to GDNativeVariantType

This commit is contained in:
Teodor Potancok
2022-05-16 19:02:54 +02:00
parent 95a2303e37
commit 5c32dc3948
2 changed files with 7 additions and 7 deletions

View File

@@ -431,7 +431,7 @@ protected:
if (p_arg >= 0 && p_arg < (int)sizeof...(P)) {
return call_get_argument_type<P...>(p_arg);
} else {
return GetTypeInfo<R>::VARIANT_TYPE;
return GDNativeVariantType(GetTypeInfo<R>::VARIANT_TYPE);
}
}
@@ -514,7 +514,7 @@ protected:
if (p_arg >= 0 && p_arg < (int)sizeof...(P)) {
return call_get_argument_type<P...>(p_arg);
} else {
return GetTypeInfo<R>::VARIANT_TYPE;
return GDNativeVariantType(GetTypeInfo<R>::VARIANT_TYPE);
}
}
@@ -655,7 +655,7 @@ protected:
if (p_arg >= 0 && p_arg < (int)sizeof...(P)) {
return call_get_argument_type<P...>(p_arg);
} else {
return GetTypeInfo<R>::VARIANT_TYPE;
return GDNativeVariantType(GetTypeInfo<R>::VARIANT_TYPE);
}
}