1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-11 18:37:08 +00:00

Re-check unknown record id after loading.

This commit is contained in:
cc9cii 2014-09-27 23:36:27 +10:00
parent 810ba61909
commit a2d043f43a

View File

@ -71,6 +71,14 @@ namespace CSMWorld
record.load (reader);
if (index==-1)
{
std::string newId = IdAccessorT().getId(record);
int newIndex = this->searchId(newId);
if (newIndex != -1 && id != newId)
index = newIndex;
}
load (record, base, index);
}
}