From 6cf4a54d9d8c9e4ac9be531288ae8ff06bb63506 Mon Sep 17 00:00:00 2001 From: Kingdaro Date: Mon, 23 May 2016 19:03:58 -0400 Subject: [PATCH] Fix for :during() call without an after function --- timer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timer.lua b/timer.lua index ecd380a..1846be6 100644 --- a/timer.lua +++ b/timer.lua @@ -64,7 +64,7 @@ function Timer:update(dt) end function Timer:during(delay, during, after) - local handle = { time = 0, during = during, after = after, limit = delay, count = 1 } + local handle = { time = 0, during = during, after = after or _nothing_, limit = delay, count = 1 } self.functions[handle] = true return handle end