forked from mirror/openmw-tes3mp
fixed overwriting of meta data when loading project file
This commit is contained in:
parent
1e033fa8fe
commit
a4c2c75d1f
1 changed files with 7 additions and 4 deletions
|
@ -861,11 +861,14 @@ int CSMWorld::Data::startLoading (const boost::filesystem::path& path, bool base
|
||||||
mBase = base;
|
mBase = base;
|
||||||
mProject = project;
|
mProject = project;
|
||||||
|
|
||||||
|
if (!mProject && !mBase)
|
||||||
|
{
|
||||||
MetaData metaData;
|
MetaData metaData;
|
||||||
metaData.mId = "sys::meta";
|
metaData.mId = "sys::meta";
|
||||||
metaData.load (*mReader);
|
metaData.load (*mReader);
|
||||||
|
|
||||||
mMetaData.setRecord (0, Record<MetaData> (RecordBase::State_ModifiedOnly, 0, &metaData));
|
mMetaData.setRecord (0, Record<MetaData> (RecordBase::State_ModifiedOnly, 0, &metaData));
|
||||||
|
}
|
||||||
|
|
||||||
return mReader->getRecordCount();
|
return mReader->getRecordCount();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue