Using special case when initializing []any in bindings

This commit is contained in:
Madpwnhammer 2023-03-21 15:40:29 +03:00
parent df2e4fd44a
commit 667040ea35
1 changed files with 3 additions and 0 deletions

View File

@ -378,6 +378,9 @@ Script_{{o.name|norm_name}}.Method_{{m.name}}.ReturnValue(frm, stack
{%- endif -%}
{%- if type is instanceof('\\mtgArrType') -%}
{%- if type == 'any[]'-%}
{{native}} = ValList.New(frm.vm);
{%~ endif -%}
var dvl = (ValList){{value}}._obj;
{{native}}.Clear();
for(int i=0;i<dvl.Count;++i)