diff options
Diffstat (limited to 'script/vm')
-rw-r--r-- | script/vm/tracer.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/vm/tracer.lua b/script/vm/tracer.lua index 823029f0..6ce57d5c 100644 --- a/script/vm/tracer.lua +++ b/script/vm/tracer.lua @@ -530,7 +530,7 @@ local lookIntoChild = util.switch() ---@param outNode? vm.node : call(function (tracer, action, topNode, outNode) for _, ret in ipairs(action) do - tracer:lookIntoChild(ret, topNode) + tracer:lookIntoChild(ret, topNode:copy()) end return topNode, outNode end) @@ -571,7 +571,7 @@ local lookIntoChild = util.switch() for i = 2, #action.args do tracer:lookIntoChild(action.args[i], topNode, topNode:copy()) end - topNode = tracer:lookIntoChild(action.args[1], topNode, topNode:copy()) + topNode = tracer:lookIntoChild(action.args[1], topNode:copy(), topNode:copy()) end tracer:lookIntoChild(action.node, topNode) tracer:lookIntoChild(action.args, topNode) |