mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +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('\\');
|
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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user