1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 12:54:00 +00:00

Don't set journal index if a higher index is currently set

This is vanilla behaviour, and required for the Mehra Milo vivec informants quest.
This commit is contained in:
scrawl 2014-01-28 20:24:25 +01:00
parent edff88542b
commit 434fd21584

View File

@ -82,7 +82,8 @@ namespace MWDialogue
if (index==-1)
throw std::runtime_error ("unknown journal entry for topic " + mTopic);
setIndex (index);
if (index > mIndex)
setIndex (index);
for (TEntryIter iter (mEntries.begin()); iter!=mEntries.end(); ++iter)
if (*iter==entry.mInfoId)