1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-16 16:20:53 +00:00

Merge branch 'esm4console' into 'master'

Autocomplete ESM4::Cell editor IDs

See merge request OpenMW/openmw!3209
This commit is contained in:
psi29a 2023-07-09 10:14:06 +00:00
commit 3833f2e92e

View File

@ -121,14 +121,20 @@ namespace MWGui
ids.clear();
}
// exterior cell names aren't technically identifiers, but since the COC function accepts them,
// we should list them too
// exterior cell names and editor IDs aren't technically identifiers,
// but since the COC function accepts them, we should list them too
for (auto it = esmStore.get<ESM::Cell>().extBegin(); it != esmStore.get<ESM::Cell>().extEnd(); ++it)
{
if (!it->mName.empty())
mNames.push_back(it->mName);
}
for (const auto& cell : esmStore.get<ESM4::Cell>())
{
if (!cell.mEditorId.empty())
mNames.push_back(cell.mEditorId);
}
// sort
std::sort(mNames.begin(), mNames.end());