mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-09 11:04:34 +00:00
Add an early out to dialogue loading to match Morrowind.exe behaviour
This commit is contained in:
parent
3e70fc2577
commit
3b8b5aee39
1 changed files with 8 additions and 1 deletions
|
|
@ -89,7 +89,14 @@ namespace ESM
|
||||||
if (lookup != mLookup.end())
|
if (lookup != mLookup.end())
|
||||||
{
|
{
|
||||||
auto it = lookup->second.first;
|
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);
|
mInfo.erase(it);
|
||||||
mLookup.erase(lookup);
|
mLookup.erase(lookup);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue