Use mono_gc_wbarrier_set_arrayref for Array marshalling
This commit is contained in:
parent
a4ea63737c
commit
0525b63421
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue