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 ~%} {