AIFetchInventoryFolder bug fix.
Forgot to initialize AIFetchInventoryFolder::mCreate. Also changed assert as it's possible that a statemachine is in state bs_initialize while checking for idle statemachines and another, already running statemachine created the new statemachine.
This commit is contained in:
@@ -79,6 +79,7 @@ class AIFetchInventoryFolder : public AIStateMachine {
|
||||
void fetch(LLUUID const& parentUUID, std::string const& foldername, bool create = false, bool fetch_contents = true)
|
||||
{
|
||||
mParentFolder = parentUUID;
|
||||
mCreate = create;
|
||||
mFetchContents = fetch_contents;
|
||||
if (mFolderName != foldername)
|
||||
{
|
||||
|
||||
@@ -343,7 +343,7 @@ void AIStateMachine::mainloop(void*)
|
||||
}
|
||||
else
|
||||
{
|
||||
llassert(statemachine.mState == bs_run);
|
||||
llassert(statemachine.mState == bs_run || statemachine.mState == bs_initialize);
|
||||
++iter;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user