From 1c5eeee5128ccf8b37a1d88b0671d03809739990 Mon Sep 17 00:00:00 2001 From: Karroffel Date: Mon, 19 Jun 2017 02:26:54 +0200 Subject: [PATCH] better Variant casting --- include/core/Godot.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/core/Godot.hpp b/include/core/Godot.hpp index f55eae3e..260c226c 100644 --- a/include/core/Godot.hpp +++ b/include/core/Godot.hpp @@ -66,7 +66,7 @@ template struct _ArgCast { static T _arg_cast(Variant a) { - return (T) a; + return a.operator T(); } };