mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
hack-fixed http://bugs.vcmi.eu/view.php?id=2533
This commit is contained in:
parent
affbc71c56
commit
34a494ade0
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user