1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-18 13:12:50 +00:00

Case sensitiviy?

This commit is contained in:
Alexander "Ace" Olofsson 2012-03-30 19:05:58 +02:00
parent 8ac9dd8e70
commit fc4e4dc336

View File

@ -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: