From f82740088014a0dcd29dcefd29ef7e019b71a772 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 8 Nov 2022 17:40:52 +0800 Subject: check type for `Enum -> Other` fix #1675 --- script/vm/global.lua | 2 -- 1 file changed, 2 deletions(-) (limited to 'script/vm/global.lua') diff --git a/script/vm/global.lua b/script/vm/global.lua index 6f3bcb68..1bd7576d 100644 --- a/script/vm/global.lua +++ b/script/vm/global.lua @@ -378,13 +378,11 @@ local compilerGlobalSwitch = util.switch() source._enums[#source._enums+1] = field local subType = vm.declareGlobal('type', name .. '.' .. field.field[1], uri) subType:addSet(uri, field) - field._globalNode = subType elseif field.type == 'tableindex' then source._enums[#source._enums+1] = field if field.index.type == 'string' then local subType = vm.declareGlobal('type', name .. '.' .. field.index[1], uri) subType:addSet(uri, field) - field._globalNode = subType end end end -- cgit v1.2.3