summaryrefslogtreecommitdiff
path: root/modules/mono
diff options
context:
space:
mode:
authorAdrian Adeva <sneik15yt@hotmail.com>2020-11-10 11:13:54 +0100
committerGitHub <noreply@github.com>2020-11-10 11:13:54 +0100
commit74f98de223f0cc1ba5c6b7ccabaee78f12c01406 (patch)
treeba4f0fe77f745fd10a6fd68f2c18fbaad945d2bb /modules/mono
parent32464e569f8e9d8b4146e49ee5daee777a8e3323 (diff)
Updated gd_glue.cpp to work with the latest changes in the variant refactoring
Without this change the engine dont compile with the mono module enabled.
Diffstat (limited to 'modules/mono')
-rw-r--r--modules/mono/glue/gd_glue.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/mono/glue/gd_glue.cpp b/modules/mono/glue/gd_glue.cpp
index 4c1df529fc..58d8dceb25 100644
--- a/modules/mono/glue/gd_glue.cpp
+++ b/modules/mono/glue/gd_glue.cpp
@@ -55,7 +55,8 @@ MonoObject *godot_icall_GD_convert(MonoObject *p_what, int32_t p_type) {
Variant what = GDMonoMarshal::mono_object_to_variant(p_what);
const Variant *args[1] = { &what };
Callable::CallError ce;
- Variant ret = Variant::construct(Variant::Type(p_type), args, 1, ce);
+ Variant ret;
+ Variant::construct(Variant::Type(p_type), ret, args, 1, ce);
ERR_FAIL_COND_V(ce.error != Callable::CallError::CALL_OK, nullptr);
return GDMonoMarshal::variant_to_mono_object(ret);
}