mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Tools/vmaps_extractor: Fix crash
This commit is contained in:
@@ -44,11 +44,11 @@ void NormalizeFileName(std::string& name)
|
||||
auto ptr = name.begin() + (name.length() - 1);
|
||||
|
||||
//extension in lowercase
|
||||
for (; *ptr != '.' && ptr >= name.begin(); --ptr)
|
||||
for (; *ptr != '.' && ptr > name.begin(); --ptr)
|
||||
if (*ptr >= 'A' && *ptr <= 'Z')
|
||||
*ptr |= 0x20;
|
||||
|
||||
for (; ptr >= name.begin(); --ptr)
|
||||
for (; ptr > name.begin(); --ptr)
|
||||
{
|
||||
if (ptr > name.begin() && *ptr >= 'A' && *ptr <= 'Z' && isalpha(*(ptr - 1)))
|
||||
*ptr |= 0x20;
|
||||
|
||||
Reference in New Issue
Block a user