1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 01:45:38 +00:00

|| and && have different binding precedence

This commit is contained in:
AnyOldName3 2024-04-30 13:50:50 +01:00
parent d148bd1cde
commit b55a0fd32a

View file

@ -602,8 +602,8 @@ void ContentSelectorModel::ContentModel::sortFiles()
emit layoutAboutToBeChanged();
int firstModifiable = 0;
while (firstModifiable < mFiles.size() && mFiles.at(firstModifiable)->builtIn()
|| mFiles.at(firstModifiable)->fromAnotherConfigFile())
while (firstModifiable < mFiles.size()
&& (mFiles.at(firstModifiable)->builtIn() || mFiles.at(firstModifiable)->fromAnotherConfigFile()))
++firstModifiable;
// Dependency sort