summaryrefslogtreecommitdiff
path: root/script/vm/ref.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/ref.lua')
-rw-r--r--script/vm/ref.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/vm/ref.lua b/script/vm/ref.lua
index e1bdf81d..472b3b49 100644
--- a/script/vm/ref.lua
+++ b/script/vm/ref.lua
@@ -259,9 +259,10 @@ local function searchByNode(source, pushResult)
if not node then
return
end
+ local uri = guide.getUri(source)
for n in nodeMgr.eachNode(node) do
if n.type == 'global' then
- for _, get in ipairs(n:getGets()) do
+ for _, get in ipairs(n:getGets(uri)) do
pushResult(get)
end
end