summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgnacio Etcheverry <neikeq@users.noreply.github.com>2017-11-01 01:52:42 +0100
committerGitHub <noreply@github.com>2017-11-01 01:52:42 +0100
commitcb3ef3c7e678af78b7cf24dfb780617938a74d42 (patch)
tree2ad645c34d4a677617fb00a9ccb829d713a520d0
parent29ea79e065cb1ecffec6b8ad17d9996f21abf1cb (diff)
parent0525b63421fa943ce8822392283b58a7bb283b08 (diff)
Merge pull request #12546 from neikeq/do-people-read-these
Use mono_gc_wbarrier_set_arrayref for Array marshalling
-rw-r--r--modules/mono/mono_gd/gd_mono_marshal.cpp2
1 files changed, 1 insertions, 1 deletions
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;