1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-01 18:09:40 +00:00

Merge branch 'dial_early_48' into 'openmw-48'

!2524 for 0.48

See merge request OpenMW/openmw!2525
This commit is contained in:
psi29a 2022-11-28 08:06:06 +00:00
commit 9bbc4a54c1

View file

@ -89,7 +89,14 @@ namespace ESM
if (lookup != mLookup.end())
{
auto it = lookup->second.first;
// Since the new version of this record may have changed the next/prev linked list connection, we need to re-insert the record
if (it->mPrev == info.mPrev)
{
*it = info;
lookup->second.second = isDeleted;
return;
}
// Since the new version of this record has a different prev linked list connection, we need to re-insert
// the record
mInfo.erase(it);
mLookup.erase(lookup);
}