Skip to content

Commit

Permalink
Fix "self" param to the GS.leave callback
Browse files Browse the repository at this point in the history
  • Loading branch information
clofresh committed Apr 12, 2013
1 parent 4f6c85e commit 11cf27d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gamestate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function GS.new(t) return t or {} end -- constructor - deprecated!
function GS.switch(to, ...)
assert(to, "Missing argument: Gamestate to switch to")
local pre = current
;(current.leave or __NULL__)(self)
;(current.leave or __NULL__)(current)
;(to.init or __NULL__)(to)
to.init = nil
current = to
Expand Down

0 comments on commit 11cf27d

Please sign in to comment.