From 3e18b81da356588b9e9749092d9833ca85e88e26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 4 Jul 2022 20:29:47 +0800 Subject: fix --- script/vm/runner.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script') diff --git a/script/vm/runner.lua b/script/vm/runner.lua index ec3449ee..49626665 100644 --- a/script/vm/runner.lua +++ b/script/vm/runner.lua @@ -117,6 +117,7 @@ function mt:_lookIntoChild(action, topNode, outNode) return topNode, topNode or outNode end self._mark[action] = true + topNode = self:_fastWardCasts(action.start, topNode) if action.type == 'getlocal' then if action.node == self._loc then self._callback(action, topNode) @@ -323,7 +324,6 @@ function mt:_lookIntoBlock(block, topNode) end for _, action in ipairs(block) do if self._has[action] then - topNode = self:_fastWardCasts(action.start, topNode) topNode = self:_lookIntoChild(action, topNode) end end -- cgit v1.2.3