mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 18:59:57 +00:00
Don't attempt to continue an outer loop from an inner loop
This commit is contained in:
parent
82285dadc4
commit
decfe75ae5
1 changed files with 2 additions and 6 deletions
|
@ -263,13 +263,9 @@ void Config::LauncherSettings::setContentList(const GameSettings& gameSettings)
|
||||||
for (const QString& listName : getContentLists())
|
for (const QString& listName : getContentLists())
|
||||||
{
|
{
|
||||||
const auto& listDirs = getDataDirectoryList(listName);
|
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;
|
continue;
|
||||||
for (int i = 0; i < dirs.length(); ++i)
|
|
||||||
{
|
|
||||||
if (dirs[i].value != listDirs[i])
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (files == getContentListFiles(listName) && archives == getArchiveList(listName))
|
if (files == getContentListFiles(listName) && archives == getArchiveList(listName))
|
||||||
{
|
{
|
||||||
setCurrentContentListName(listName);
|
setCurrentContentListName(listName);
|
||||||
|
|
Loading…
Reference in a new issue