1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-17 20:46:34 +00:00

CLEANUP: Remove dead code in cloneRecordImp

This commit is contained in:
Dave Corley 2025-07-13 05:10:14 -07:00
parent 4f95ca4196
commit 42109fc811

View file

@ -273,15 +273,6 @@ namespace CSMWorld
copy->mState = RecordBase::State_ModifiedOnly;
setRecordId(destination, copy->get());
if constexpr (std::is_same_v<ESXRecordT, CSMWorld::CellRef>)
{
if (type == UniversalId::Type_Reference)
{
CSMWorld::CellRef* ptr = (CSMWorld::CellRef*)&copy->mModified;
ptr->mRefNum.mIndex = 0;
}
}
if constexpr (std::is_same_v<ESXRecordT, ESM::Dialogue>)
{
copy->mModified.mStringId = copy->mModified.mId.getRefIdString();