From 3a95054db5c44a3fea6a27d5633f668539e67870 Mon Sep 17 00:00:00 2001 From: Rui Date: Sat, 1 Oct 2016 23:16:50 +0900 Subject: Fix typo in core.after (#4560) --- builtin/game/misc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtin/game') diff --git a/builtin/game/misc.lua b/builtin/game/misc.lua index d7164812a..1333a75ba 100644 --- a/builtin/game/misc.lua +++ b/builtin/game/misc.lua @@ -38,7 +38,7 @@ core.register_globalstep(function(dtime) end) function core.after(after, func, ...) - assert(tonumber(time) and type(func) == "function", + assert(tonumber(after) and type(func) == "function", "Invalid core.after invocation") jobs[#jobs + 1] = { func = func, -- cgit v1.2.3