Skip to content

Commit

Permalink
Actually allow use wildcard '*' in state chart
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhael-Danilov committed May 22, 2015
1 parent 0d4993f commit 3bf070e
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 3bf070e

Please sign in to comment.