Use a normal binary search

pull/21/head
Alexander "Ace" Olofsson 13 years ago
parent ce38876a74
commit c3944d3e1a

@ -116,12 +116,7 @@ class DirArchive: public Ogre::FileSystemArchive
}
mrComparer comp(delimiter, copy.size() - delimiter-1);
std::vector<std::string>::iterator found = std::lower_bound(current.begin(), current.end(), copy, comp);
if (found != current.end() && !(comp(copy, current.front())))
return true;
return false;
return std::binary_search(current.begin(), current.end(), copy, comp);
}
public:

Loading…
Cancel
Save