From 310af508bd4bd7a640ee5c6560cafc5c340834b6 Mon Sep 17 00:00:00 2001 From: Max Cahill Date: Thu, 3 Oct 2024 17:12:41 +1000 Subject: [PATCH] remove a pointless comparison --- state_machine.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state_machine.lua b/state_machine.lua index fcebed1..bd04ed1 100644 --- a/state_machine.lua +++ b/state_machine.lua @@ -65,7 +65,7 @@ end function state_machine:_call_and_transition(name, ...) local r = self:_call(name, ...) if type(r) == "string" and self:has_state(r) then - self:set_state(r, r == self.current_state_name) + self:set_state(r, true) return nil end return r