From 99360e132f9c73b30eed8d176ddc6bb630dce5a0 Mon Sep 17 00:00:00 2001 From: Capostrophic Date: Sun, 18 Feb 2018 16:01:50 +0300 Subject: [PATCH] Only display "new journal entry" message in dialogue if there *is* a new entry --- apps/openmw/mwdialogue/journalimp.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwdialogue/journalimp.cpp b/apps/openmw/mwdialogue/journalimp.cpp index b56db1ebd6..b219516183 100644 --- a/apps/openmw/mwdialogue/journalimp.cpp +++ b/apps/openmw/mwdialogue/journalimp.cpp @@ -83,8 +83,10 @@ namespace MWDialogue if (i->mTopic == id && i->mInfoId == infoId) { if (getJournalIndex(id) < index) + { setJournalIndex(id, index); - MWBase::Environment::get().getWindowManager()->messageBox ("#{sJournalEntry}"); + MWBase::Environment::get().getWindowManager()->messageBox ("#{sJournalEntry}"); + } return; }