From 91081e09d5ca6d067b5d810a95eff7e2479435b7 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Fri, 30 May 2025 16:24:07 -0400 Subject: [PATCH] [skip ci] small optimization --- tools/bs-plugins/type-gen-plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bs-plugins/type-gen-plugin.ts b/tools/bs-plugins/type-gen-plugin.ts index 4a4fceb2..b75c5ea1 100644 --- a/tools/bs-plugins/type-gen-plugin.ts +++ b/tools/bs-plugins/type-gen-plugin.ts @@ -7,7 +7,7 @@ const types = [ { name: 'Float', interface: 'ifFloat', type: 'float', defaultValue: '0!' }, { name: 'Double', interface: 'ifDouble', type: 'double', defaultValue: '0#' }, { name: 'String', interface: 'ifString', type: 'string', defaultValue: '""' }, - { name: 'Array', interface: 'ifArray', type: 'object', defaultValue: '[]' }, + { name: 'Array', interface: 'ifArray', type: 'object', defaultValue: 'CreateObject("roArray", 0, true)' }, { name: 'AssociativeArray', interface: 'ifAssociativeArray', type: 'object', defaultValue: '{}' }, { name: 'ByteArray', interface: 'ifByteArray', type: null, defaultValue: null }, { name: 'Function', interface: 'ifFunction', type: null, defaultValue: null },