- pick the proper dot for cutting off the extension in ExtractFileBase.

This commit is contained in:
Christoph Oelckers 2021-05-17 13:11:41 +02:00
parent 6071cf66cc
commit 6e9c85791c

View file

@ -331,13 +331,8 @@ FString ExtractFileBase (const char *path, bool include_extension)
} }
#endif #endif
if (!include_extension) if (!include_extension && (dot = strrchr(src, '.')))
{ {
dot = src;
while (*dot && *dot != '.')
{
dot++;
}
return FString(src, dot - src); return FString(src, dot - src);
} }
else else