mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-19 05:46:39 +00:00
CLEANUP: Remove dead code in cloneRecordImp
This commit is contained in:
parent
4f95ca4196
commit
42109fc811
1 changed files with 0 additions and 9 deletions
|
@ -273,15 +273,6 @@ namespace CSMWorld
|
||||||
copy->mState = RecordBase::State_ModifiedOnly;
|
copy->mState = RecordBase::State_ModifiedOnly;
|
||||||
setRecordId(destination, copy->get());
|
setRecordId(destination, copy->get());
|
||||||
|
|
||||||
if constexpr (std::is_same_v<ESXRecordT, CSMWorld::CellRef>)
|
|
||||||
{
|
|
||||||
if (type == UniversalId::Type_Reference)
|
|
||||||
{
|
|
||||||
CSMWorld::CellRef* ptr = (CSMWorld::CellRef*)©->mModified;
|
|
||||||
ptr->mRefNum.mIndex = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if constexpr (std::is_same_v<ESXRecordT, ESM::Dialogue>)
|
if constexpr (std::is_same_v<ESXRecordT, ESM::Dialogue>)
|
||||||
{
|
{
|
||||||
copy->mModified.mStringId = copy->mModified.mId.getRefIdString();
|
copy->mModified.mStringId = copy->mModified.mId.getRefIdString();
|
||||||
|
|
Loading…
Reference in a new issue