Fix french assert.
Fixes a possible ASSERT(!(need_new_run && !mYieldEngine && sub_state_r->run_state == run_state)). When over all multiplex_impl functions and this is the only case that I found where it could return without changing the state and without calling either idle() or yield().
This commit is contained in:
@@ -101,7 +101,10 @@ void AIStateMachineThreadBase::multiplex_impl(state_type run_state)
|
|||||||
break;
|
break;
|
||||||
case wait_stopped:
|
case wait_stopped:
|
||||||
if (!mThread->isStopped())
|
if (!mThread->isStopped())
|
||||||
|
{
|
||||||
|
yield();
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
// We're done!
|
// We're done!
|
||||||
//
|
//
|
||||||
// We can only get here when AIThreadImpl::done called cont(), (very
|
// We can only get here when AIThreadImpl::done called cont(), (very
|
||||||
|
|||||||
@@ -420,6 +420,7 @@ void AIFilePicker::multiplex_impl(state_type run_state)
|
|||||||
// Store folder of first filename as context.
|
// Store folder of first filename as context.
|
||||||
AIFilePicker::store_folder(mContext, getFolder());
|
AIFilePicker::store_folder(mContext, getFolder());
|
||||||
finish();
|
finish();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user