Quantcast

We shouldn't waste a perfectly good table

Adrian L Lange [06-17-13 - 00:52]
We shouldn't waste a perfectly good table
Filename
Monomyth.lua
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