mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-20 01:11:32 +00:00
Don't attempt to open files yet to be created.
This commit is contained in:
parent
5c504e4d22
commit
44a333b6db
1 changed files with 3 additions and 0 deletions
|
@ -966,6 +966,9 @@ int CSMWorld::Data::getTotalRecords (const std::vector<boost::filesystem::path>&
|
|||
|
||||
for (unsigned int i = 0; i < files.size(); ++i)
|
||||
{
|
||||
if (!boost::filesystem::exists(files[i]))
|
||||
continue;
|
||||
|
||||
reader->open(files[i].string());
|
||||
records += reader->getRecordCount();
|
||||
reader->close();
|
||||
|
|
Loading…
Reference in a new issue