mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-12-13 06:53:06 +00:00
fixed access to records flagged as deleted
This commit is contained in:
parent
f39f694638
commit
f2969e7143
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ namespace CSMWorld
|
||||||
if (mState==State_Erased)
|
if (mState==State_Erased)
|
||||||
throw std::logic_error ("attempt to access a deleted record");
|
throw std::logic_error ("attempt to access a deleted record");
|
||||||
|
|
||||||
return mState==State_BaseOnly ? mBase : mModified;
|
return mState==State_BaseOnly || mState==State_Deleted ? mBase : mModified;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename ESXRecordT>
|
template <typename ESXRecordT>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue