From 679ce2e082be67b0ac520b521ee9ae80c7439725 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Mon, 17 Jun 2013 02:52:23 +0200 Subject: [PATCH] We shouldn't waste a perfectly good table --- Monomyth.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Monomyth.lua b/Monomyth.lua index 7660367..3295fa9 100644 --- a/Monomyth.lua +++ b/Monomyth.lua @@ -16,7 +16,14 @@ do function DelayHandler(func, ...) if(delayed) then delayed = false - currentInfo = {func, ...} + + table.wipe(currentInfo) + table.insert(currentInfo, func) + + for index = 1, select('#', ...) do + local argument = select(index, ...) + table.insert(currentInfo, argument) + end Delayer:Play() else -- 1.7.9.5