logical fix

develop
Vyacheslav Boyko 2022-07-12 23:09:04 +03:00
parent 9fb2276ac1
commit 192fb69677
1 changed files with 1 additions and 1 deletions

View File

@ -263,9 +263,9 @@ public class Fsm<T extends Fsm, E> {
}
private void nextState(State<E> state, E event) {
state.beforeEvent();
previousState = currentState;
currentState = state;
currentState.beforeEvent();
}
private void checkStateExist(String name) throws StateAlreadyExistsException {