Merge pull request #15 from pakeke-constructor/patch-1

Fixed `start` state inclusion in state_machine
This commit is contained in:
Max Cahill 2021-01-25 10:41:37 +11:00 committed by GitHub
commit eef0d8d126
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({ self = self:init({
states = states or {}, states = states or {},
current_state = "", current_state = "",
start_state = "", start_state = start,
}) })
self:reset() self:reset()