mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-29 00:06:43 +00:00
substr check
This commit is contained in:
parent
84a4fd56c3
commit
6be092e268
1 changed files with 2 additions and 0 deletions
|
@ -214,6 +214,8 @@ namespace MWGui
|
||||||
Ogre::StringVectorPtr resources = Ogre::ResourceGroupManager::getSingleton ().listResourceNames ("General", false);
|
Ogre::StringVectorPtr resources = Ogre::ResourceGroupManager::getSingleton ().listResourceNames ("General", false);
|
||||||
for (Ogre::StringVector::const_iterator it = resources->begin(); it != resources->end(); ++it)
|
for (Ogre::StringVector::const_iterator it = resources->begin(); it != resources->end(); ++it)
|
||||||
{
|
{
|
||||||
|
if (it->size() < 6)
|
||||||
|
continue;
|
||||||
std::string start = it->substr(0, 6);
|
std::string start = it->substr(0, 6);
|
||||||
boost::to_lower(start);
|
boost::to_lower(start);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue