diff options
author | Ignacio Etcheverry <neikeq@users.noreply.github.com> | 2018-07-31 20:10:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-31 20:10:04 +0200 |
commit | ccce161d0e8b03cb7abc3186e920547d6914ef56 (patch) | |
tree | 8d061eddc8c874b7fe8879c0f64ecd2ed348b0d7 /modules/mono/mono_gd/gd_mono_class.cpp | |
parent | 3f01f40e91c962b68fd18c0ca00144dfb6aee65f (diff) | |
parent | 4172fa03b56bb60fe096639585e0ca40df73b677 (diff) |
Merge pull request #20639 from neikeq/issue-20531-and-cleanup
Mono: Fix property set_value and cleanup
Diffstat (limited to 'modules/mono/mono_gd/gd_mono_class.cpp')
-rw-r--r-- | modules/mono/mono_gd/gd_mono_class.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/mono/mono_gd/gd_mono_class.cpp b/modules/mono/mono_gd/gd_mono_class.cpp index ad74f73d74..4e515cde28 100644 --- a/modules/mono/mono_gd/gd_mono_class.cpp +++ b/modules/mono/mono_gd/gd_mono_class.cpp @@ -40,9 +40,7 @@ String GDMonoClass::get_full_name(MonoClass *p_mono_class) { MonoReflectionType *type_obj = mono_type_get_object(mono_domain_get(), get_mono_type(p_mono_class)); MonoException *exc = NULL; - GD_MONO_BEGIN_RUNTIME_INVOKE; - MonoString *str = mono_object_to_string((MonoObject *)type_obj, (MonoObject **)&exc); - GD_MONO_END_RUNTIME_INVOKE; + MonoString *str = GDMonoUtils::object_to_string((MonoObject *)type_obj, &exc); UNLIKELY_UNHANDLED_EXCEPTION(exc); return GDMonoMarshal::mono_string_to_godot(str); |