1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +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('\\');
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);
}
toUpper(name);