Browse Source

Merge pull request #26661 from neikeq/issue-17601

Mono: Fix array field being assigned MonoArray** instead of MonoArray*
Ignacio Etcheverry 6 năm trước cách đây
mục cha
commit
6492de800f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      modules/mono/mono_gd/gd_mono_field.cpp

+ 1 - 1
modules/mono/mono_gd/gd_mono_field.cpp

@@ -49,7 +49,7 @@ void GDMonoField::set_value_from_variant(MonoObject *p_object, const Variant &p_
 #define SET_FROM_ARRAY(m_type)                                                                   \
 	{                                                                                            \
 		MonoArray *managed = GDMonoMarshal::m_type##_to_mono_array(p_value.operator ::m_type()); \
-		mono_field_set_value(p_object, mono_field, &managed);                                    \
+		mono_field_set_value(p_object, mono_field, managed);                                     \
 	}
 
 	switch (type.type_encoding) {