From 706006ec83af85ad995fd9ac3a6c00733a7a645f Mon Sep 17 00:00:00 2001 From: Jan Haller Date: Thu, 9 Feb 2023 00:11:30 +0100 Subject: [PATCH] Update array_set_typed() call to use GDExtensionVariantType instead of uint32_t --- src/variant/packed_arrays.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/variant/packed_arrays.cpp b/src/variant/packed_arrays.cpp index e565888..a6dfabf 100644 --- a/src/variant/packed_arrays.cpp +++ b/src/variant/packed_arrays.cpp @@ -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 . + 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 {