diff options
author | Aki <nthirtyone@gmail.com> | 2017-09-04 19:10:09 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-09-04 19:10:09 +0200 |
commit | f98ca666a8cdc2c179b2daed280d36ca03d32860 (patch) | |
tree | 1eef4820f5fd1881843b5cf5d11ca0275c871b02 /not | |
parent | 5d141eae2bfb196597a8743bc2409ac20308e45e (diff) | |
download | roflnauts-f98ca666a8cdc2c179b2daed280d36ca03d32860.zip roflnauts-f98ca666a8cdc2c179b2daed280d36ca03d32860.tar.gz roflnauts-f98ca666a8cdc2c179b2daed280d36ca03d32860.tar.bz2 |
Fixed callWithSet
Diffstat (limited to 'not')
-rw-r--r-- | not/Demultiplexer.lua | 6 |
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 |