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:
Aleric Inglewood
2012-07-15 23:08:07 +02:00
parent 53e96b02c0
commit a34247ebf4

View File

@@ -351,7 +351,7 @@ class AIStateMachine {
bool running(void) const { return mState == bs_run; }
//! 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.
bool waiting(void) const { return mState == bs_run && mIdle; }