diff --git a/tpl/macro.twig b/tpl/macro.twig index 4ec2e4d..844996b 100644 --- a/tpl/macro.twig +++ b/tpl/macro.twig @@ -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