forked from mirror/openmw-tes3mp
fixed base flag in content file loader code
This commit is contained in:
parent
47bd170d7e
commit
073cc3f02c
1 changed files with 2 additions and 1 deletions
|
@ -39,6 +39,7 @@ void CSMDoc::Loader::load()
|
|||
Document *document = iter->first;
|
||||
|
||||
int size = static_cast<int> (document->getContentFiles().size());
|
||||
int editedIndex = size-1; // index of the file to be edited/created
|
||||
|
||||
if (document->isNew())
|
||||
--size;
|
||||
|
@ -77,7 +78,7 @@ void CSMDoc::Loader::load()
|
|||
{
|
||||
boost::filesystem::path path = document->getContentFiles()[iter->second.mFile];
|
||||
|
||||
int steps = document->getData().startLoading (path, iter->second.mFile<size-1, false);
|
||||
int steps = document->getData().startLoading (path, iter->second.mFile!=editedIndex, false);
|
||||
iter->second.mRecordsLeft = true;
|
||||
|
||||
emit nextStage (document, path.filename().string(), steps/batchingSize);
|
||||
|
|
Loading…
Reference in a new issue