From decfe75ae5be684a06c3bd9b8f0b90dadb5ef949 Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Thu, 20 Jun 2024 23:57:22 +0100 Subject: [PATCH] Don't attempt to continue an outer loop from an inner loop --- components/config/launchersettings.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/components/config/launchersettings.cpp b/components/config/launchersettings.cpp index f9f067e58a..6706051782 100644 --- a/components/config/launchersettings.cpp +++ b/components/config/launchersettings.cpp @@ -263,13 +263,9 @@ void Config::LauncherSettings::setContentList(const GameSettings& gameSettings) for (const QString& listName : getContentLists()) { const auto& listDirs = getDataDirectoryList(listName); - if (dirs.length() != listDirs.length()) + if (!std::ranges::equal( + dirs, listDirs, [](const SettingValue& dir, const QString& listDir) { return dir.value == listDir; })) continue; - for (int i = 0; i < dirs.length(); ++i) - { - if (dirs[i].value != listDirs[i]) - continue; - } if (files == getContentListFiles(listName) && archives == getArchiveList(listName)) { setCurrentContentListName(listName);