summaryrefslogtreecommitdiff
path: root/script/vm/tracer.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/tracer.lua')
-rw-r--r--script/vm/tracer.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/script/vm/tracer.lua b/script/vm/tracer.lua
index 025a6ae1..d4b9e5be 100644
--- a/script/vm/tracer.lua
+++ b/script/vm/tracer.lua
@@ -214,6 +214,7 @@ end
local lookIntoChild = util.switch()
: case 'getlocal'
+ : case 'getglobal'
---@param tracer vm.tracer
---@param action parser.object
---@param topNode vm.node
@@ -466,7 +467,7 @@ local lookIntoChild = util.switch()
and call.args then
local getVar = call.args[1]
if getVar
- and tracer.assignMap[getVar] then
+ and tracer.getMap[getVar] then
for _, ref in ipairs(action.ref) do
tracer:collectCare(ref)
end
@@ -694,7 +695,7 @@ end
---@param source parser.object
function mt:calcNode(source)
if self.getMap[source] then
- local lastAssign = self:getLastAssign(0, source.start)
+ local lastAssign = self:getLastAssign(0, source.finish)
if not lastAssign then
lastAssign = source.node
end