mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:19:55 +00:00
Fix incorrect assignment of PcRace, need to sort race IDs (Fixes #2884)
This commit is contained in:
parent
50ec8b10f5
commit
542c648e69
2 changed files with 3 additions and 0 deletions
|
@ -170,6 +170,7 @@ namespace MWWorld
|
|||
size_t getSize() const;
|
||||
int getDynamicSize() const;
|
||||
|
||||
/// @note The record identifiers are listed in the order that the records were defined by the content files.
|
||||
void listIdentifier(std::vector<std::string> &list) const;
|
||||
|
||||
T *insert(const T &item);
|
||||
|
|
|
@ -1496,6 +1496,8 @@ namespace MWWorld
|
|||
std::vector<std::string> ids;
|
||||
getStore().get<ESM::Race>().listIdentifier(ids);
|
||||
|
||||
std::sort(ids.begin(), ids.end());
|
||||
|
||||
unsigned int i=0;
|
||||
|
||||
for (; i<ids.size(); ++i)
|
||||
|
|
Loading…
Reference in a new issue