mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 18:29:55 +00:00
some file collection bug fixing
This commit is contained in:
parent
8829398bfc
commit
d9f1b64213
2 changed files with 5 additions and 3 deletions
|
@ -41,9 +41,9 @@ namespace Files
|
|||
|
||||
MultiDirCollection::MultiDirCollection (const std::vector<boost::filesystem::path>& directories,
|
||||
const std::string& extension, bool foldCase)
|
||||
: mFiles (NameLess (foldCase))
|
||||
: mFiles (NameLess (!foldCase))
|
||||
{
|
||||
NameEqual equal (foldCase);
|
||||
NameEqual equal (!foldCase);
|
||||
|
||||
for (std::vector<boost::filesystem::path>::const_iterator iter = directories.begin();
|
||||
iter!=directories.end(); ++iter)
|
||||
|
|
|
@ -27,7 +27,9 @@ namespace Files
|
|||
char l = std::tolower (left[i]);
|
||||
char r = std::tolower (right[i]);
|
||||
|
||||
if (l>=r)
|
||||
if (l<r)
|
||||
return true;
|
||||
if (l>r)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue