Fixed start state inclusion in state_machine

This commit is contained in:
pakeke-constructor 2021-01-25 12:22:37 +13:00 committed by GitHub
parent 7185a91fc5
commit f4a924aced
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()