mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-29 16:24:35 +00:00
Merge pull request #15 from pakeke-constructor/patch-1
Fixed `start` state inclusion in state_machine
This commit is contained in:
commit
eef0d8d126
@ -31,7 +31,7 @@ function state_machine:new(states, start)
|
||||
self = self:init({
|
||||
states = states or {},
|
||||
current_state = "",
|
||||
start_state = "",
|
||||
start_state = start,
|
||||
})
|
||||
|
||||
self:reset()
|
||||
|
Loading…
Reference in New Issue
Block a user