From f98ca666a8cdc2c179b2daed280d36ca03d32860 Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 4 Sep 2017 19:10:09 +0200 Subject: Fixed callWithSet --- not/Demultiplexer.lua | 6 ++++-- 1 file 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 -- cgit v1.1