1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 00:35:23 +00:00

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

This commit is contained in:
scrawl 2017-10-22 19:30:55 +02:00
parent 768da57da2
commit 3d0094bd2e

View File

@ -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);