mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-22 20:09:43 +00:00
Fix checking whether content file is master file
This commit is contained in:
parent
c7449dc272
commit
f8eafe0dfd
1 changed files with 2 additions and 1 deletions
|
@ -34,7 +34,8 @@ void EsmLoader::load(const boost::filesystem::path& filepath, int& index, Loadin
|
|||
|
||||
mStore.load(*reader, listener, mDialogue);
|
||||
|
||||
if (!mMasterFileFormat.has_value() && Misc::StringUtils::ciEndsWith(reader->getName(), ".esm") && !Misc::StringUtils::ciEndsWith(reader->getName(), ".omwgame"))
|
||||
if (!mMasterFileFormat.has_value() && (Misc::StringUtils::ciEndsWith(reader->getName(), ".esm")
|
||||
|| Misc::StringUtils::ciEndsWith(reader->getName(), ".omwgame")))
|
||||
mMasterFileFormat = reader->getFormat();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue