summaryrefslogtreecommitdiff
path: root/script/vm/field.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/field.lua')
-rw-r--r--script/vm/field.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/script/vm/field.lua b/script/vm/field.lua
index 92448bb3..c30e112d 100644
--- a/script/vm/field.lua
+++ b/script/vm/field.lua
@@ -23,7 +23,10 @@ local function searchByNode(source, pushResult)
if not node then
return
end
- searchNodeSwitch(node.type, node, pushResult)
+
+ for n in nodeMgr.eachNode(node) do
+ searchNodeSwitch(n.type, n, pushResult)
+ end
end
---@param source parser.object