mirror of
https://github.com/vrld/hump.git
synced 2024-11-23 12:24:19 +00:00
Merge pull request #43 from xpol/master
Fixes wrong arg #1 for resume().
This commit is contained in:
commit
605953dddf
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user