Bug fix.
Don't test on something that belongs in an assert. is_main_thread() doesn't even exist unless --type=Debug.
This commit is contained in:
@@ -351,7 +351,7 @@ class AIStateMachine {
|
|||||||
bool running(void) const { return mState == bs_run; }
|
bool running(void) const { return mState == bs_run; }
|
||||||
|
|
||||||
//! Return true if it's safe to call abort.
|
//! Return true if it's safe to call abort.
|
||||||
bool abortable(void) const { return (mState == bs_run && (!mIdle || is_main_thread())) || mState == bs_initialize; }
|
bool abortable(void) const { return mState == bs_run || mState == bs_initialize; }
|
||||||
|
|
||||||
//! Return true if the derived class is running but idle.
|
//! Return true if the derived class is running but idle.
|
||||||
bool waiting(void) const { return mState == bs_run && mIdle; }
|
bool waiting(void) const { return mState == bs_run && mIdle; }
|
||||||
|
|||||||
Reference in New Issue
Block a user