1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 10:53:51 +00:00

Use a case-insensitive compare for the part filter

This commit is contained in:
Chris Robinson 2012-07-18 22:31:07 -07:00
parent b505d4ace0
commit c9b1f72d81

View file

@ -944,7 +944,8 @@ EntityList NIFLoader::createEntities(Ogre::Entity *parent, const std::string &bo
if(ent->hasSkeleton())
{
if(meshes[i].second.length() < filter.length() ||
meshes[i].second.compare(0, filter.length(), filter) != 0)
!boost::algorithm::lexicographical_compare(meshes[i].second.substr(0, filter.length()),
filter, boost::algorithm::is_iequal()))
{
sceneMgr->destroyEntity(ent);
meshes.erase(meshes.begin()+i);