Merge pull request #43 from xpol/master

Fixes wrong arg #1 for resume().
This commit is contained in:
vrld 2014-12-16 18:06:21 +01:00
commit 605953dddf

View File

@ -57,10 +57,10 @@ end
function GS.pop(...)
assert(#stack > 1, "No more states to pop!")
local pre = stack[#stack]
local pre, to = stack[#stack], stack[#stack-1]
stack[#stack] = nil
;(pre.leave or __NULL__)(pre)
return (stack[#stack].resume or __NULL__)(pre, ...)
return (to.resume or __NULL__)(to, ...)
end
function GS.current()