1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00

Do not show empty journal entries (fixes #3891)

This commit is contained in:
Andrei Kortunov 2017-06-27 15:54:16 +04:00
parent 8d17565efd
commit 7fcb22b867

View File

@ -85,13 +85,15 @@ namespace MWDialogue
StampedJournalEntry entry = StampedJournalEntry::makeFromQuest (id, index, actor);
mJournal.push_back (entry);
Quest& quest = getQuest (id);
quest.addEntry (entry); // we are doing slicing on purpose here
MWBase::Environment::get().getWindowManager()->messageBox ("#{sJournalEntry}");
// there is no need to show empty entries in journal
if (!entry.getText().empty())
{
mJournal.push_back (entry);
MWBase::Environment::get().getWindowManager()->messageBox ("#{sJournalEntry}");
}
}
void Journal::setJournalIndex (const std::string& id, int index)