Remove extraneous 'V_FixSlashes' call

No need to fix slashes when stripping last dir. We can always fix them up on a subsequent call to 'V_FixSlashes' if we ever need to.
This commit is contained in:
Kawe Mazidjatari 2023-07-05 22:08:32 +02:00
parent 42d12a644e
commit 77299dd3de

View File

@ -800,8 +800,6 @@ size_t V_StripLastDir(char* dirName, size_t maxLen)
if (PATHSEPARATOR(dirName[len - 1]))
{
dirName[len] = '\0';
V_FixSlashes(dirName, CORRECT_PATH_SEPARATOR);
return len;
}
else if (dirName[len - 1] == ':')