summaryrefslogtreecommitdiff
path: root/script/core/infer.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/infer.lua')
-rw-r--r--script/core/infer.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/script/core/infer.lua b/script/core/infer.lua
index a2c12fba..6a795dd4 100644
--- a/script/core/infer.lua
+++ b/script/core/infer.lua
@@ -500,13 +500,13 @@ function m.searchInfers(source, field, mark)
local id = noder.getID(source)
if id then
local node = noder.getNodeByID(source, id)
- if node and node.sources then
- for _, src in ipairs(node.sources) do
+ if node and node.source then
+ noder.eachSource(node, function (src)
if not mark[src] then
mark[src] = true
searchInfer(src, infers, mark)
end
- end
+ end)
end
end
end