From ae7b0f5e0c58ac18e438271d7d7cec7bd9d469cc Mon Sep 17 00:00:00 2001 From: madpwnhammer Date: Sun, 4 Dec 2022 13:15:14 +0300 Subject: [PATCH] Fixed readargs macro --- tpl/macro.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpl/macro.twig b/tpl/macro.twig index b5f4498..1491fcc 100644 --- a/tpl/macro.twig +++ b/tpl/macro.twig @@ -265,7 +265,7 @@ {{Error("ref argument is not allowed to have a default value: " ~ o.name ~ '.' ~ arg.name)}} {%- endif ~%} - {%- do ++default_counter -%} + {%- set default_counter = default_counter + 1 -%} if(!args_info.IsDefaultArgUsed({{o.args|length - count_required_args(o) - default_counter}})) {%- endif ~%} {