1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 19:45:40 +00:00

Restore dialogue autocompletion in the console

This commit is contained in:
Evil Eye 2022-03-19 12:02:26 +01:00
parent 2325b16f8f
commit d7d1a85143
2 changed files with 9 additions and 0 deletions

View file

@ -1072,6 +1072,13 @@ namespace MWWorld
return true;
}
void Store<ESM::Dialogue>::listIdentifier(std::vector<std::string>& list) const
{
list.reserve(list.size() + getSize());
for (const auto& dialogue : mShared)
list.push_back(dialogue->mId);
}
const MWDialogue::KeywordSearch<std::string, int>& Store<ESM::Dialogue>::getDialogIdKeywordSearch() const
{
if (mKeywordSearchModFlag)

View file

@ -474,6 +474,8 @@ namespace MWWorld
RecordId load(ESM::ESMReader &esm) override;
void listIdentifier(std::vector<std::string> &list) const override;
const MWDialogue::KeywordSearch<std::string, int>& getDialogIdKeywordSearch() const;
};