mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-01 15:36:40 +00:00
Cloned references should be considered "Base" rather than "Modified". Should fix bug #2429.
This commit is contained in:
parent
907ac5ef7f
commit
a54ab153b0
1 changed files with 1 additions and 1 deletions
|
@ -471,7 +471,7 @@ void CSMWorld::RefIdCollection::cloneRecord(const std::string& origin,
|
||||||
const CSMWorld::UniversalId::Type type)
|
const CSMWorld::UniversalId::Type type)
|
||||||
{
|
{
|
||||||
std::auto_ptr<RecordBase> newRecord(mData.getRecord(mData.searchId(origin)).clone());
|
std::auto_ptr<RecordBase> newRecord(mData.getRecord(mData.searchId(origin)).clone());
|
||||||
newRecord->mState = RecordBase::State_ModifiedOnly;
|
newRecord->mState = RecordBase::State_BaseOnly;
|
||||||
mAdapters.find(type)->second->setId(*newRecord, destination);
|
mAdapters.find(type)->second->setId(*newRecord, destination);
|
||||||
mData.insertRecord(*newRecord, type, destination);
|
mData.insertRecord(*newRecord, type, destination);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue