Don't attempt to continue an outer loop from an inner loop

pull/3236/head
AnyOldName3 6 months ago
parent 82285dadc4
commit decfe75ae5

@ -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);

Loading…
Cancel
Save