summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthe lemons <citrons@mondecitronne.com>2022-02-12 20:02:05 -0600
committerthe lemons <citrons@mondecitronne.com>2022-02-12 20:02:05 -0600
commitd742d5dfbdff8fc631dd237e40c0904ba12fd0c3 (patch)
tree4d4a1e62c67320c6818e28715acea46e209ae3a7
parent58770608d21aa913efe16dd24747c55cafd1858a (diff)
fix crash
-rw-r--r--mods/vzxv/event.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/mods/vzxv/event.lua b/mods/vzxv/event.lua
index a7a0b7c..faabd97 100644
--- a/mods/vzxv/event.lua
+++ b/mods/vzxv/event.lua
@@ -26,8 +26,9 @@ end
-- iterate through all of the event handlers' results
function vzxv.event:trigger_each(...)
local p = pairs(self)
+ local bee = {...}
return function()
local f = p()
- if f then return f(...) end
+ if f then return f(table.unpack(bee)) end
end
end