forked from mirror/openmw-tes3mp
Do not cancel Ai packages when on loading (Fixes #3409)
This piece of code was an attempt to fix up save games made before commit d3b76b7006
, but ended up introducing a new bug.
This commit is contained in:
parent
d487007167
commit
496cb85b01
1 changed files with 0 additions and 15 deletions
|
@ -409,21 +409,6 @@ void AiSequence::readState(const ESM::AiSequence::AiSequence &sequence)
|
|||
if (!package.get())
|
||||
continue;
|
||||
|
||||
// remove previous packages if required
|
||||
if (package->shouldCancelPreviousAi())
|
||||
{
|
||||
for(std::list<AiPackage *>::iterator it = mPackages.begin(); it != mPackages.end();)
|
||||
{
|
||||
if((*it)->canCancel())
|
||||
{
|
||||
delete *it;
|
||||
it = mPackages.erase(it);
|
||||
}
|
||||
else
|
||||
++it;
|
||||
}
|
||||
}
|
||||
|
||||
mPackages.push_back(package.release());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue