1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00
This commit is contained in:
AlexVinS 2016-10-02 12:39:25 +03:00
parent affbc71c56
commit 34a494ade0

View File

@ -44,7 +44,11 @@ static inline std::string readName(std::string name)
delimPos = name.find_last_of('\\'); delimPos = name.find_last_of('\\');
if((delimPos == std::string::npos || delimPos < dotPos) && dotPos != std::string::npos) if((delimPos == std::string::npos || delimPos < dotPos) && dotPos != std::string::npos)
{
auto type = EResTypeHelper::getTypeFromExtension(name.substr(dotPos));
if(type != EResType::OTHER)
name.resize(dotPos); name.resize(dotPos);
}
toUpper(name); toUpper(name);