mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
don't store esm readers for non-base content files
This commit is contained in:
parent
4a9d2038fa
commit
db17dbe324
@ -678,9 +678,15 @@ bool CSMWorld::Data::continueLoading (CSMDoc::Stage::Messages& messages)
|
|||||||
|
|
||||||
if (!mReader->hasMoreRecs())
|
if (!mReader->hasMoreRecs())
|
||||||
{
|
{
|
||||||
// Don't delete the Reader yet. Some record types store a reference to the Reader to handle on-demand loading
|
if (mBase)
|
||||||
boost::shared_ptr<ESM::ESMReader> ptr(mReader);
|
{
|
||||||
mReaders.push_back(ptr);
|
// Don't delete the Reader yet. Some record types store a reference to the Reader to handle on-demand loading.
|
||||||
|
// We don't store non-base reader, because everything going into modified will be
|
||||||
|
// fully loaded during the initial loading process.
|
||||||
|
boost::shared_ptr<ESM::ESMReader> ptr(mReader);
|
||||||
|
mReaders.push_back(ptr);
|
||||||
|
}
|
||||||
|
|
||||||
mReader = 0;
|
mReader = 0;
|
||||||
|
|
||||||
mDialogue = 0;
|
mDialogue = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user