From f4a924aced0057cbd8dac91683ff3f2f498129da Mon Sep 17 00:00:00 2001 From: pakeke-constructor <62230683+pakeke-constructor@users.noreply.github.com> Date: Mon, 25 Jan 2021 12:22:37 +1300 Subject: [PATCH] Fixed `start` state inclusion in state_machine --- state_machine.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state_machine.lua b/state_machine.lua index 5bd6a16..8ea1434 100644 --- a/state_machine.lua +++ b/state_machine.lua @@ -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()