mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-24 01:36:47 +00:00
Reapply quest index when loading quest from savegame (Bug #2260)
This commit is contained in:
parent
f35c9b7a69
commit
6f41e0d12e
1 changed files with 6 additions and 1 deletions
|
@ -259,7 +259,12 @@ namespace MWDialogue
|
||||||
record.load (reader);
|
record.load (reader);
|
||||||
|
|
||||||
if (isThere (record.mTopic))
|
if (isThere (record.mTopic))
|
||||||
mQuests.insert (std::make_pair (record.mTopic, record));
|
{
|
||||||
|
std::pair<TQuestContainer::iterator, bool> result = mQuests.insert (std::make_pair (record.mTopic, record));
|
||||||
|
// reapply quest index, this is to handle users upgrading from only
|
||||||
|
// Morrowind.esm (no quest states) to Morrowind.esm + Tribunal.esm
|
||||||
|
result.first->second.setIndex(record.mState);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue