mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-26 07:34: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({
|
self = self:init({
|
||||||
states = states or {},
|
states = states or {},
|
||||||
current_state = "",
|
current_state = "",
|
||||||
start_state = "",
|
start_state = start,
|
||||||
})
|
})
|
||||||
|
|
||||||
self:reset()
|
self:reset()
|
||||||
|
Loading…
Reference in New Issue
Block a user