From 74f98de223f0cc1ba5c6b7ccabaee78f12c01406 Mon Sep 17 00:00:00 2001 From: Adrian Adeva Date: Tue, 10 Nov 2020 11:13:54 +0100 Subject: [PATCH] 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. --- modules/mono/glue/gd_glue.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/mono/glue/gd_glue.cpp b/modules/mono/glue/gd_glue.cpp index 4c1df529fc3..58d8dceb254 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); }