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)