mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-21 11:26:04 +08:00
Fixed issue where on_exit_state was being called after the state had changed.
This commit is contained in:
parent
58bf40b55d
commit
a6f3bcd17e
@ -318,8 +318,8 @@ namespace etl
|
||||
{
|
||||
do
|
||||
{
|
||||
p_state = p_next_state;
|
||||
fsm_helper::on_exit_state(*p_state);
|
||||
p_state = p_next_state;
|
||||
|
||||
next_state_id = fsm_helper::on_enter_state(*p_state);
|
||||
ETL_ASSERT(next_state_id < number_of_states, ETL_ERROR(etl::fsm_state_id_exception));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user