Fix behavior of 'journal' command when invoked with already seen entry

pull/321/head
scrawl 7 years ago
parent 768da57da2
commit 3d0094bd2e

@ -77,11 +77,15 @@ namespace MWDialogue
void Journal::addEntry (const std::string& id, int index, const MWWorld::Ptr& actor)
{
// bail out of we already have heard this...
// bail out if we already have heard this...
std::string infoId = JournalEntry::idFromIndex (id, index);
for (TEntryIter i = mJournal.begin (); i != mJournal.end (); ++i)
if (i->mTopic == id && i->mInfoId == infoId)
{
setJournalIndex(id, index);
MWBase::Environment::get().getWindowManager()->messageBox ("#{sJournalEntry}");
return;
}
StampedJournalEntry entry = StampedJournalEntry::makeFromQuest (id, index, actor);

Loading…
Cancel
Save