mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-22 18:09:41 +00:00
Do not list custom made classes in the pick class dialog
This commit is contained in:
parent
b332704df7
commit
90cc1de46c
1 changed files with 3 additions and 0 deletions
|
@ -199,6 +199,9 @@ namespace MWGui
|
||||||
if (!playable) // Only display playable classes
|
if (!playable) // Only display playable classes
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (store.get<ESM::Class>().isDynamic(it->mId))
|
||||||
|
continue; // custom-made class not relevant for this dialog
|
||||||
|
|
||||||
items.push_back(std::make_pair(it->mId, it->mName));
|
items.push_back(std::make_pair(it->mId, it->mName));
|
||||||
}
|
}
|
||||||
std::sort(items.begin(), items.end(), sortClasses);
|
std::sort(items.begin(), items.end(), sortClasses);
|
||||||
|
|
Loading…
Reference in a new issue