From 0525b63421fa943ce8822392283b58a7bb283b08 Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Wed, 1 Nov 2017 00:17:34 +0100 Subject: Use mono_gc_wbarrier_set_arrayref for Array marshalling --- modules/mono/mono_gd/gd_mono_marshal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mono/mono_gd/gd_mono_marshal.cpp b/modules/mono/mono_gd/gd_mono_marshal.cpp index 77a1ef3cb0..01392447f3 100644 --- a/modules/mono/mono_gd/gd_mono_marshal.cpp +++ b/modules/mono/mono_gd/gd_mono_marshal.cpp @@ -600,7 +600,7 @@ MonoArray *Array_to_mono_array(const Array &p_array) { for (int i = 0; i < p_array.size(); i++) { MonoObject *boxed = variant_to_mono_object(p_array[i]); - mono_array_set(ret, MonoObject *, i, boxed); + mono_array_setref(ret, i, boxed); } return ret; -- cgit v1.2.3