summaryrefslogtreecommitdiffhomepage
path: root/not/Group.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-09-04 23:40:37 +0200
committerAki <nthirtyone@gmail.com>2017-09-04 23:40:37 +0200
commitcc96f0f2fe9af1ef9de0846f9939f3d477e86849 (patch)
tree3b4f82b2a4943a6b15626575ec32c17b16afb19d /not/Group.lua
parent1392fe0404f19decab197064c88ca4dc0ad9c12d (diff)
downloadroflnauts-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.lua2
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