summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rw-r--r--script/core/noder.lua17
1 files changed, 13 insertions, 4 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua
index 3a8b9fe2..371e0200 100644
--- a/script/core/noder.lua
+++ b/script/core/noder.lua
@@ -940,7 +940,10 @@ compileNodeMap = util.switch()
: call(function (noders, id, source)
if source.bindSources then
for _, src in ipairs(source.bindSources) do
- pushForward(noders, getID(src), id)
+ if src.parent.type ~= 'funcargs'
+ and not src.dummy then
+ pushForward(noders, getID(src), id)
+ end
end
end
for _, enumUnit in ipairs(source.enums) do
@@ -954,7 +957,10 @@ compileNodeMap = util.switch()
pushForward(noders, id, unitID)
if source.bindSources then
for _, src in ipairs(source.bindSources) do
- pushBackward(noders, unitID, getID(src))
+ if src.parent.type ~= 'funcargs'
+ and not src.dummy then
+ pushBackward(noders, unitID, getID(src))
+ end
end
end
end
@@ -1031,8 +1037,11 @@ compileNodeMap = util.switch()
or src.type == 'tablefield'
or src.type == 'tableindex'
or src.type == 'setglobal' then
- pushForward(noders, getID(src), id)
- pushForward(noders, id, getID(src))
+ if src.parent.type ~= 'funcargs'
+ and not src.dummy then
+ pushForward(noders, getID(src), id)
+ pushForward(noders, id, getID(src))
+ end
end
end
end