fix GDMonoProperty::set_value

was calling getter and not setter
should close #15387
This commit is contained in:
Paul Joannon 2018-01-21 12:29:49 +01:00
parent fa569210f5
commit e0ce249621
No known key found for this signature in database
GPG Key ID: 93604DC6128B663C
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ bool GDMonoProperty::has_setter() {
}
void GDMonoProperty::set_value(MonoObject *p_object, MonoObject *p_value, MonoObject **r_exc) {
MonoMethod *prop_method = mono_property_get_get_method(mono_property);
MonoMethod *prop_method = mono_property_get_set_method(mono_property);
MonoArray *params = mono_array_new(mono_domain_get(), CACHED_CLASS_RAW(MonoObject), 1);
mono_array_set(params, MonoObject *, 0, p_value);