diff --git a/core/src/state_machine.c b/core/src/state_machine.c index 6bc4e2a..4e18ad8 100644 --- a/core/src/state_machine.c +++ b/core/src/state_machine.c @@ -17,7 +17,6 @@ void internal_state_machine_set_state(StateMachine* self, const State* state) { StateMachine* state_machine_init(void* data, const State* start_state) { StateMachine* self = malloc(sizeof(StateMachine)); ASSERT_RETURN(self != NULL, NULL, "Failed to allocate space for StateMachine instance"); - *self = (StateMachine){ .current_state = start_state, .data = data