From a5685a99a14cd92c01ce0edd1ed430e35a31c6b6 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Thu, 19 Oct 2023 19:05:46 +0300 Subject: [PATCH] Hopefully fixing bhl_ref_arg with bhl_cusom_rw --- tpl/macro.twig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tpl/macro.twig b/tpl/macro.twig index be811ff..74d01a6 100644 --- a/tpl/macro.twig +++ b/tpl/macro.twig @@ -330,7 +330,9 @@ Script_{{o.name|norm_name}}.Method_{{m.name}}.ReturnValue(frm, stack {%- if has_token(arg, 'bhl_ref_arg') ~%} var dv = stack.Pop(); {{arg_prefix}}{{arg.name}} = dv; + {%- if not has_token(arg.type, 'bhl_custom_rw') -%} {{ _self.val2native(arg.type, 'dv', arg_prefix ~ 'ref_' ~ arg.name) }}; + {%- endif ~%} {%- else ~%} var dv = stack.Pop(); {{ _self.val2native(arg.type, 'dv', arg_prefix ~ arg.name) }};