From 073afa589be41900e4881d755ba663d8718fffec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 16 Jun 2022 15:10:38 +0800 Subject: fix #1213 change back to enum --- script/vm/runner.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'script/vm/runner.lua') diff --git a/script/vm/runner.lua b/script/vm/runner.lua index 793b4417..2de06aaa 100644 --- a/script/vm/runner.lua +++ b/script/vm/runner.lua @@ -296,10 +296,12 @@ function mt:_lookInto(action, topNode, outNode) end elseif action.type == 'paren' then topNode, outNode = self:_lookInto(action.exp, topNode, outNode) - else - guide.eachSourceContain(action, top.finish, function(source) - self:_lookInto(source, topNode) - end) + elseif action.type == 'return' then + for _, rtn in ipairs(action) do + self:_lookInto(rtn, topNode) + end + elseif action.type == 'getindex' then + self:_lookInto(action.index, topNode) end ::RETURN:: topNode = self:_fastWard(action.finish, topNode) -- cgit v1.2.3