Skip to content

Commit

Permalink
remove a pointless comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
1bardesign committed Oct 3, 2024
1 parent ea5e6ae commit 310af50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion state_machine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 310af50

Please sign in to comment.