Proper retain for any Val in args
Publish PHP Package / docker (push) Successful in 6s Details

This commit is contained in:
Pavel Shevaev 2024-12-03 18:37:08 +03:00
parent d5e8a9fe58
commit 8871e94a1b
1 changed files with 2 additions and 1 deletions

View File

@ -448,7 +448,8 @@ Script_{{o.name|norm_name}}.Method_{{m.name}}.ReturnValue(frm, stack
{%- macro val2native(type, value, native, is_arg = false) -%}
{# any special case #}
{%- if type == 'any' -%}
{{native}} = {{value}}
{{native}} = {{value}};
{{native}}.Retain();
{%- else -%}
{%~ if type is instanceof('\\mtgMetaFunc') -%}