mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-18 13:12:50 +00:00
Case sensitiviy?
This commit is contained in:
parent
8ac9dd8e70
commit
fc4e4dc336
@ -112,7 +112,13 @@ class DirArchive: public Ogre::FileSystemArchive
|
||||
}
|
||||
|
||||
pathComparer comp(delimiter, copy.size() - delimiter-1);
|
||||
return std::binary_search(current.begin(), current.end(), copy, comp);
|
||||
std::vector<std::string>::iterator find = std::lower_bound(current.begin(), current.end(), copy, comp);
|
||||
if (find != current.end() && !comp(copy, current.front()))
|
||||
{
|
||||
copy = *find;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public:
|
||||
|
Loading…
x
Reference in New Issue
Block a user