Closed PyroFlareX closed 5 years ago
Possible fix: Add bool returning function to states that is checked in the loop, or possibly by another thread. This isn't preferable IMO, but it would help with changes in state.
Fixed, went with passing a reference to the Application class in the input function, still should be worked on a bit though.
A State is pushed in application constructor. When I try to push a state (state 1) from within a state (state 2)(either BattleState or GameState) the error occurs. If I push the same state, no error, but it is obviously useless pushing the same state.
If State 1 pushes State 2 or vice versa, error. If State 1 or 2 pushes itself, no error.