mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 21:35:24 +00:00
Makes key inside Collection::getCollection use lowercase
This commit is contained in:
parent
98f839982e
commit
68887e79a0
@ -20,11 +20,12 @@ namespace Files
|
||||
|
||||
const MultiDirCollection& Collections::getCollection(const std::string& extension) const
|
||||
{
|
||||
MultiDirCollectionContainer::iterator iter = mCollections.find(extension);
|
||||
std::string ext = Misc::StringUtils::lowerCase(extension);
|
||||
MultiDirCollectionContainer::iterator iter = mCollections.find(ext);
|
||||
if (iter==mCollections.end())
|
||||
{
|
||||
std::pair<MultiDirCollectionContainer::iterator, bool> result =
|
||||
mCollections.insert(std::make_pair(extension, MultiDirCollection(mDirectories, extension, mFoldCase)));
|
||||
mCollections.insert(std::make_pair(ext, MultiDirCollection(mDirectories, ext, mFoldCase)));
|
||||
|
||||
iter = result.first;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user