mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 23:23:52 +00:00
Re-check unknown record id after loading.
This commit is contained in:
parent
810ba61909
commit
a2d043f43a
1 changed files with 8 additions and 0 deletions
|
@ -71,6 +71,14 @@ namespace CSMWorld
|
||||||
|
|
||||||
record.load (reader);
|
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);
|
load (record, base, index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue