mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:23:52 +00:00
Revert "Fix loop where there was a potential for double entry."
This reverts commit a439f49c4d
.
This commit is contained in:
parent
b7cd62e4de
commit
3bfe167bc0
1 changed files with 0 additions and 3 deletions
|
@ -265,10 +265,7 @@ bool Config::GameSettings::writeFileWithComments(QFile &file)
|
||||||
// Below is based on readFile() code, if that changes corresponding change may be
|
// Below is based on readFile() code, if that changes corresponding change may be
|
||||||
// required (for example duplicates may be inserted if the rules don't match)
|
// required (for example duplicates may be inserted if the rules don't match)
|
||||||
if ((*iter).isEmpty() || (*iter).contains(QRegExp("^\\s*#")))
|
if ((*iter).isEmpty() || (*iter).contains(QRegExp("^\\s*#")))
|
||||||
{
|
|
||||||
stream << *iter << "\n";
|
stream << *iter << "\n";
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (settingRegex.indexIn(*iter) == -1 || settingRegex.captureCount() < 2)
|
if (settingRegex.indexIn(*iter) == -1 || settingRegex.captureCount() < 2)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue