diff options
author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2019-03-05 21:46:44 +0100 |
---|---|---|
committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2019-03-05 21:46:55 +0100 |
commit | c6ac7333a63453892d7fca2075d4141206085cc5 (patch) | |
tree | 959da1525afb64f0cc5da081e9a3c9dda5140b3f | |
parent | 8d117b214f2bcd14015532fdfbed9b3f059da0e6 (diff) |
Mono: Fix array field being assigned MonoArray** instead of MonoArray*
Fixes #17601
-rw-r--r-- | modules/mono/mono_gd/gd_mono_field.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/mono_gd/gd_mono_field.cpp b/modules/mono/mono_gd/gd_mono_field.cpp index 48fa380456..5e9d4db122 100644 --- a/modules/mono/mono_gd/gd_mono_field.cpp +++ b/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) { |