mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 10:23:52 +00:00
Don't clear AiSequence if there are no saved packages (eg for old savegames)
This commit is contained in:
parent
01c90a3434
commit
b20f8cc04f
1 changed files with 2 additions and 1 deletions
|
@ -300,7 +300,8 @@ void AiSequence::writeState(ESM::AiSequence::AiSequence &sequence) const
|
||||||
|
|
||||||
void AiSequence::readState(const ESM::AiSequence::AiSequence &sequence)
|
void AiSequence::readState(const ESM::AiSequence::AiSequence &sequence)
|
||||||
{
|
{
|
||||||
clear();
|
if (!sequence.mPackages.empty())
|
||||||
|
clear();
|
||||||
|
|
||||||
for (std::vector<ESM::AiSequence::AiPackageContainer>::const_iterator it = sequence.mPackages.begin();
|
for (std::vector<ESM::AiSequence::AiPackageContainer>::const_iterator it = sequence.mPackages.begin();
|
||||||
it != sequence.mPackages.end(); ++it)
|
it != sequence.mPackages.end(); ++it)
|
||||||
|
|
Loading…
Reference in a new issue