1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 07:53:53 +00:00

substr check

This commit is contained in:
scrawl 2012-10-17 12:41:24 +02:00
parent 84a4fd56c3
commit 6be092e268

View file

@ -214,6 +214,8 @@ namespace MWGui
Ogre::StringVectorPtr resources = Ogre::ResourceGroupManager::getSingleton ().listResourceNames ("General", false);
for (Ogre::StringVector::const_iterator it = resources->begin(); it != resources->end(); ++it)
{
if (it->size() < 6)
continue;
std::string start = it->substr(0, 6);
boost::to_lower(start);