diff options
author | Paul Joannon <hello@pauljoannon.com> | 2018-01-21 12:29:49 +0100 |
---|---|---|
committer | Paul Joannon <hello@pauljoannon.com> | 2018-01-21 12:29:49 +0100 |
commit | e0ce2496213e2dbec1fd773e19b5a487c62ebb58 (patch) | |
tree | 85b93b439b058da5de3709754ff8f9cc7a4e3a77 /modules | |
parent | fa569210f5ef316177724169a42d2b82f4ab03d9 (diff) |
fix GDMonoProperty::set_value
was calling getter and not setter
should close #15387
Diffstat (limited to 'modules')
-rw-r--r-- | modules/mono/mono_gd/gd_mono_property.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/mono_gd/gd_mono_property.cpp b/modules/mono/mono_gd/gd_mono_property.cpp index bc5a1d3a39..0fe527b199 100644 --- a/modules/mono/mono_gd/gd_mono_property.cpp +++ b/modules/mono/mono_gd/gd_mono_property.cpp @@ -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); |