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:
parent
358cc3c62f
commit
849ee54399
1 changed files with 6 additions and 4 deletions
|
@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue