Hopefully fixing bhl_ref_arg with bhl_cusom_rw

This commit is contained in:
Pavel Shevaev 2023-10-19 19:05:46 +03:00
parent 0e1fd074ed
commit a5685a99a1
1 changed files with 2 additions and 0 deletions

View File

@ -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) }};