Don't reset journal index to a lower value (Fixes #4172)

pull/326/head
scrawl 7 years ago
parent 4437a72e47
commit 4a7be0ffda

@ -82,7 +82,8 @@ namespace MWDialogue
for (TEntryIter i = mJournal.begin (); i != mJournal.end (); ++i) for (TEntryIter i = mJournal.begin (); i != mJournal.end (); ++i)
if (i->mTopic == id && i->mInfoId == infoId) if (i->mTopic == id && i->mInfoId == infoId)
{ {
setJournalIndex(id, index); if (getJournalIndex(id) < index)
setJournalIndex(id, index);
MWBase::Environment::get().getWindowManager()->messageBox ("#{sJournalEntry}"); MWBase::Environment::get().getWindowManager()->messageBox ("#{sJournalEntry}");
return; return;
} }

Loading…
Cancel
Save