summaryrefslogtreecommitdiffstats
path: root/modules/mono/csharp_script.cpp
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2018-09-27 00:11:31 +0200
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2018-09-27 00:11:31 +0200
commit50fd5ef3b5ceb53bd2201441b16b377b2e51c536 (patch)
tree762fb2f66196a9dbde53546316627233553cab58 /modules/mono/csharp_script.cpp
parent0f3de6ef3a659fcb7d05a1f86d725643dcb8ae12 (diff)
downloadredot-engine-50fd5ef3b5ceb53bd2201441b16b377b2e51c536.tar.gz
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.cpp2
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;
}