Case sensitiviy?

pull/21/head
Alexander "Ace" Olofsson 13 years ago
parent 8ac9dd8e70
commit fc4e4dc336

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

Loading…
Cancel
Save