diff options
author | Aki <nthirtyone@gmail.com> | 2017-09-04 23:40:37 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-09-04 23:40:37 +0200 |
commit | cc96f0f2fe9af1ef9de0846f9939f3d477e86849 (patch) | |
tree | 3b4f82b2a4943a6b15626575ec32c17b16afb19d /not/Group.lua | |
parent | 1392fe0404f19decab197064c88ca4dc0ad9c12d (diff) | |
download | roflnauts-cc96f0f2fe9af1ef9de0846f9939f3d477e86849.zip roflnauts-cc96f0f2fe9af1ef9de0846f9939f3d477e86849.tar.gz roflnauts-cc96f0f2fe9af1ef9de0846f9939f3d477e86849.tar.bz2 |
Fix for empty second parameter in table.insert
Diffstat (limited to 'not/Group.lua')
-rw-r--r-- | not/Group.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/not/Group.lua b/not/Group.lua index d9c0b9c..e644e5e 100644 --- a/not/Group.lua +++ b/not/Group.lua @@ -14,7 +14,7 @@ function Group:callEach (func, ...) local results = {} for _,child in ipairs(self.children) do if type(child[func]) == "function" then - table.insert(results, child[func](child, ...)) + table.insert(results, child[func](child, ...) or nil) end end return results |