mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
Add bounds check
This commit is contained in:
parent
a57c350c08
commit
d148bd1cde
@ -602,7 +602,8 @@ void ContentSelectorModel::ContentModel::sortFiles()
|
||||
emit layoutAboutToBeChanged();
|
||||
|
||||
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;
|
||||
|
||||
// Dependency sort
|
||||
|
Loading…
x
Reference in New Issue
Block a user