From 276cd771f997e69af7818a96a92df50f9f832ce2 Mon Sep 17 00:00:00 2001 From: ForLoveOfCats Date: Thu, 4 Apr 2019 16:07:48 -0400 Subject: [PATCH] Mono: Makes GD.Convert take Variant.Type instead of int (cherry picked from commit 46e79e6fadeef1795014b45d8f0f485e5025c51c) --- modules/mono/glue/Managed/Files/GD.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mono/glue/Managed/Files/GD.cs b/modules/mono/glue/Managed/Files/GD.cs index 3afaf5d08b8..0c7d24f060e 100644 --- a/modules/mono/glue/Managed/Files/GD.cs +++ b/modules/mono/glue/Managed/Files/GD.cs @@ -18,7 +18,7 @@ namespace Godot return godot_icall_GD_bytes2var(bytes); } - public static object Convert(object what, int type) + public static object Convert(object what, Variant.Type type) { return godot_icall_GD_convert(what, type); } @@ -200,7 +200,7 @@ namespace Godot internal extern static object godot_icall_GD_bytes2var(byte[] bytes); [MethodImpl(MethodImplOptions.InternalCall)] - internal extern static object godot_icall_GD_convert(object what, int type); + internal extern static object godot_icall_GD_convert(object what, Variant.Type type); [MethodImpl(MethodImplOptions.InternalCall)] internal extern static int godot_icall_GD_hash(object var);