mirror of
https://github.com/OpenMW/openmw.git
synced 2025-05-29 08:41:31 +00:00
Merge branch 'bounds-check' into 'master'
Add bounds check See merge request OpenMW/openmw!4067
This commit is contained in:
commit
ed116ebf04
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue