summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
Diffstat (limited to 'script/core')
-rw-r--r--script/core/noder.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua
index 28a547bb..566a7445 100644
--- a/script/core/noder.lua
+++ b/script/core/noder.lua
@@ -1009,9 +1009,11 @@ function m.compileNode(noders, source)
end
end
if doc.type == 'doc.vararg' then
- for _, param in ipairs(source.args) do
- if param.type == '...' then
- pushForward(noders, getID(param), getID(doc))
+ if source.args then
+ for _, param in ipairs(source.args) do
+ if param.type == '...' then
+ pushForward(noders, getID(param), getID(doc))
+ end
end
end
end