mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
Feature #764: Show quest names in quest book if present
This commit is contained in:
parent
358cc3c62f
commit
849ee54399
@ -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;
|
||||
|
||||
visitor (reinterpret_cast <QuestId> (&i->second), toUtf8Span (i->first));
|
||||
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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user