1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 09:23:53 +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); 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: public: