60142b191d
Since #131, `LimboState::_exit()` became a source of potential crashes if object references are used without a validity check. It's too easy to miss this, which can lead to game crashing during runtime. This fix reverts #131 change and proposes alternative approach of re-activating root HSM upon tree entering if it was previously active. Note that it's not an ideal solution, as some state will be lost upon re-parenting: HSM exits and then re-activates and enters its initial state. |
||
---|---|---|
.. | ||
limbo_hsm.cpp | ||
limbo_hsm.h | ||
limbo_state.cpp | ||
limbo_state.h |