Using special case when initializing []any in bindings
This commit is contained in:
parent
df2e4fd44a
commit
667040ea35
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue