limboai/hsm
Serhii Snitsaruk 60142b191d
Fix invalid access crash on exit in LimboHSM
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.
2024-09-22 13:57:15 +02:00
..
limbo_hsm.cpp Fix invalid access crash on exit in LimboHSM 2024-09-22 13:57:15 +02:00
limbo_hsm.h Fix invalid access crash on exit in LimboHSM 2024-09-22 13:57:15 +02:00
limbo_state.cpp Fix invalid access crash on exit in LimboHSM 2024-09-22 13:57:15 +02:00
limbo_state.h Use different prefetch root for the base plan in BTPlayer and BTState 2024-09-15 15:47:11 +02:00