From 6f52414fc098886056d8060dde097626e5095126 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:26:49 +0800 Subject: fix --- script/vm/runner.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'script') diff --git a/script/vm/runner.lua b/script/vm/runner.lua index 8169c8f2..ec3449ee 100644 --- a/script/vm/runner.lua +++ b/script/vm/runner.lua @@ -140,9 +140,8 @@ function mt:_lookIntoChild(action, topNode, outNode) goto RETURN end if action.op.type == 'and' then - local dummyNode = topNode:copy() - topNode = self:_lookIntoChild(action[1], topNode, dummyNode) - topNode = self:_lookIntoChild(action[2], topNode, dummyNode) + topNode = self:_lookIntoChild(action[1], topNode, topNode:copy()) + topNode = self:_lookIntoChild(action[2], topNode, topNode:copy()) elseif action.op.type == 'or' then outNode = outNode or topNode:copy() local topNode1, outNode1 = self:_lookIntoChild(action[1], topNode, outNode) -- cgit v1.2.3