From 77299dd3de29e4ef3207215a94bbd962d9954287 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Wed, 5 Jul 2023 22:08:32 +0200 Subject: [PATCH] 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. --- r5dev/tier1/strtools.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/r5dev/tier1/strtools.cpp b/r5dev/tier1/strtools.cpp index ff6160d2..6c0cbfd0 100644 --- a/r5dev/tier1/strtools.cpp +++ b/r5dev/tier1/strtools.cpp @@ -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] == ':')