Skip to content

Commit

Permalink
Don't attempt to continue an outer loop from an inner loop
Browse files Browse the repository at this point in the history
  • Loading branch information
AnyOldName3 committed Jun 21, 2024
1 parent 82285da commit decfe75
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions components/config/launchersettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit decfe75

Please sign in to comment.