Merge pull request #1034 from Bromeon/qol/array-set-typed

`array_set_typed()` now called with `GDExtensionVariantType` instead of `uint32_t`
pull/1040/head
Rémi Verschelde 2023-02-09 11:29:45 +01:00 committed by GitHub
commit f9ccf28374
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -209,7 +209,8 @@ Variant &Array::operator[](int p_index) {
}
void Array::set_typed(uint32_t p_type, const StringName &p_class_name, const Variant &p_script) {
internal::gde_interface->array_set_typed((GDExtensionTypePtr *)this, p_type, (GDExtensionConstStringNamePtr)&p_class_name, (GDExtensionConstVariantPtr)&p_script);
// p_type is not Variant::Type so that header doesn't depend on <variant.hpp>.
internal::gde_interface->array_set_typed((GDExtensionTypePtr *)this, (GDExtensionVariantType)p_type, (GDExtensionConstStringNamePtr)&p_class_name, (GDExtensionConstVariantPtr)&p_script);
}
void Array::_ref(const Array &p_from) const {