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:
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…
x
Reference in New Issue
Block a user