mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
Add bounds check
This commit is contained in:
parent
a57c350c08
commit
d148bd1cde
@ -602,7 +602,8 @@ void ContentSelectorModel::ContentModel::sortFiles()
|
|||||||
emit layoutAboutToBeChanged();
|
emit layoutAboutToBeChanged();
|
||||||
|
|
||||||
int firstModifiable = 0;
|
int firstModifiable = 0;
|
||||||
while (mFiles.at(firstModifiable)->builtIn() || mFiles.at(firstModifiable)->fromAnotherConfigFile())
|
while (firstModifiable < mFiles.size() && mFiles.at(firstModifiable)->builtIn()
|
||||||
|
|| mFiles.at(firstModifiable)->fromAnotherConfigFile())
|
||||||
++firstModifiable;
|
++firstModifiable;
|
||||||
|
|
||||||
// Dependency sort
|
// Dependency sort
|
||||||
|
Loading…
x
Reference in New Issue
Block a user