diff --git a/lib/modding/CModHandler.cpp b/lib/modding/CModHandler.cpp index 5e0e4c8d2..15c9d22e4 100644 --- a/lib/modding/CModHandler.cpp +++ b/lib/modding/CModHandler.cpp @@ -346,6 +346,9 @@ void CModHandler::loadModFilesystems() if (leftModName == rightModName) continue; + if (getModDependencies(leftModName).count(rightModName) || getModDependencies(rightModName).count(leftModName)) + continue; + const auto & filter = [](const ResourcePath &path){return path.getType() != EResType::DIRECTORY;}; std::unordered_set leftResources = modFilesystems[leftModName]->getFilteredFiles(filter);