From f8eafe0dfda7a1b88c2e94ae73391d0274292979 Mon Sep 17 00:00:00 2001 From: elsid Date: Mon, 6 Jun 2022 00:57:44 +0200 Subject: [PATCH] Fix checking whether content file is master file --- apps/openmw/mwworld/esmloader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwworld/esmloader.cpp b/apps/openmw/mwworld/esmloader.cpp index e9aa590e87..795b070dfa 100644 --- a/apps/openmw/mwworld/esmloader.cpp +++ b/apps/openmw/mwworld/esmloader.cpp @@ -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(); }