diff --git a/apps/openmw/mwworld/store.cpp b/apps/openmw/mwworld/store.cpp index d35746dfff..1a6fdaf215 100644 --- a/apps/openmw/mwworld/store.cpp +++ b/apps/openmw/mwworld/store.cpp @@ -1072,6 +1072,13 @@ namespace MWWorld return true; } + void Store::listIdentifier(std::vector& list) const + { + list.reserve(list.size() + getSize()); + for (const auto& dialogue : mShared) + list.push_back(dialogue->mId); + } + const MWDialogue::KeywordSearch& Store::getDialogIdKeywordSearch() const { if (mKeywordSearchModFlag) diff --git a/apps/openmw/mwworld/store.hpp b/apps/openmw/mwworld/store.hpp index 1ec51ad5fd..36860f291a 100644 --- a/apps/openmw/mwworld/store.hpp +++ b/apps/openmw/mwworld/store.hpp @@ -474,6 +474,8 @@ namespace MWWorld RecordId load(ESM::ESMReader &esm) override; + void listIdentifier(std::vector &list) const override; + const MWDialogue::KeywordSearch& getDialogIdKeywordSearch() const; };