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:
parent
b505d4ace0
commit
c9b1f72d81
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue