diff options
author | Ignacio Etcheverry <neikeq@users.noreply.github.com> | 2018-09-27 00:38:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-27 00:38:39 +0200 |
commit | 2e877031369c35c918c014a7ae3688b6f555e5bd (patch) | |
tree | c3dda8c3b7fc74e5a33eef982de88f74313c843b /modules/mono/csharp_script.cpp | |
parent | a2b6be23ada5e7dc6f5815236d7d2b3bb41ab2db (diff) | |
parent | 50fd5ef3b5ceb53bd2201441b16b377b2e51c536 (diff) |
Merge pull request #22460 from neikeq/issue-22403
Mono: Fix not creating generic Array or Dictionary where expected
Diffstat (limited to 'modules/mono/csharp_script.cpp')
-rw-r--r-- | modules/mono/csharp_script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp index c013c232d4..91fd482235 100644 --- a/modules/mono/csharp_script.cpp +++ b/modules/mono/csharp_script.cpp @@ -1174,7 +1174,7 @@ bool CSharpInstance::set(const StringName &p_name, const Variant &p_value) { GDMonoProperty *property = script->script_class->get_property(p_name); if (property) { - property->set_value(mono_object, GDMonoMarshal::variant_to_mono_object(p_value)); + property->set_value(mono_object, GDMonoMarshal::variant_to_mono_object(p_value, property->get_type())); return true; } |