From 5884cb766ae3cef50494ba3a1072903dce0f161e Mon Sep 17 00:00:00 2001 From: Ruslan Mustakov Date: Fri, 28 Jul 2017 22:38:47 +0700 Subject: [PATCH] Fix invokeVarArgs return value --- godot/nim/godotmacros.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/godot/nim/godotmacros.nim b/godot/nim/godotmacros.nim index fd151df..727f89d 100644 --- a/godot/nim/godotmacros.nim +++ b/godot/nim/godotmacros.nim @@ -230,8 +230,7 @@ macro invokeVarArgs(procIdent, objIdent; invocation.add(argIdent) if hasReturnValue: let theCall = newNimNode(nnkBracketExpr).add(newNimNode(nnkDotExpr).add( - newCall("toGodot", newCall("newVariant", invocation)), - ident("godotVariant"))) + newCall("toGodot", invocation), ident("godotVariant"))) branchBody.add(getAst(initGodotVariantCall(ident("result"), theCall))) else: branchBody.add(invocation)