summaryrefslogtreecommitdiffhomepage
path: root/not/Demultiplexer.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-09-04 19:10:09 +0200
committerAki <nthirtyone@gmail.com>2017-09-04 19:10:09 +0200
commitf98ca666a8cdc2c179b2daed280d36ca03d32860 (patch)
tree1eef4820f5fd1881843b5cf5d11ca0275c871b02 /not/Demultiplexer.lua
parent5d141eae2bfb196597a8743bc2409ac20308e45e (diff)
downloadroflnauts-f98ca666a8cdc2c179b2daed280d36ca03d32860.zip
roflnauts-f98ca666a8cdc2c179b2daed280d36ca03d32860.tar.gz
roflnauts-f98ca666a8cdc2c179b2daed280d36ca03d32860.tar.bz2
Fixed callWithSet
Diffstat (limited to 'not/Demultiplexer.lua')
-rw-r--r--not/Demultiplexer.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/not/Demultiplexer.lua b/not/Demultiplexer.lua
index c2b2272..cbbbcef 100644
--- a/not/Demultiplexer.lua
+++ b/not/Demultiplexer.lua
@@ -27,8 +27,10 @@ end
function Demultiplexer:callWithSet (set, func, ...)
for i,test in ipairs(Controller.getSets()) do
if test == set then
- self.children[i][func](...)
- return nil
+ local child = self.children[i]
+ if child then
+ return child[func](child, ...)
+ end
end
end
end