Skip to content

Commit

Permalink
Merge pull request #15 from Mikhael-Danilov/patch-1
Browse files Browse the repository at this point in the history
Actually allow use wildcard '*' in state chart
  • Loading branch information
kyleconroy committed May 26, 2015
2 parents 0d4993f + 3bf070e commit 8862b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion statemachine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ end

function machine:can(e)
local event = self.events[e]
local to = event and event.map[self.current]
local to = event and event.map[self.current] or event.map['*']
return to ~= nil, to
end

Expand Down

0 comments on commit 8862b41

Please sign in to comment.