1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 08:23:51 +00:00

Feature #764: Show quest names in quest book if present

This commit is contained in:
scrawl 2014-01-23 12:54:37 +01:00
parent 358cc3c62f
commit 849ee54399

View file

@ -206,10 +206,12 @@ struct JournalViewModelImpl : JournalViewModel
if (active_only && i->second.isFinished ())
continue;
/// \todo quest.getName() is broken? returns empty string
//const MWDialogue::Quest& quest = i->second;
const MWDialogue::Quest& quest = i->second;
// Unfortunately Morrowind.esm has no quest names, since the quest book was added with tribunal.
if (quest.getName().empty())
visitor (reinterpret_cast <QuestId> (&i->second), toUtf8Span (i->first));
else
visitor (reinterpret_cast <QuestId> (&i->second), toUtf8Span (quest.getName()));
}
}