Skip to content

Commit 3b7479e

Browse files
committed
fix: silly stupid
1 parent e4c62a4 commit 3b7479e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Features/ConfigPlus.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ CON_COMMAND_F(sar_download_file, "sar_download_file <url> <filepath> [directory]
108108
// Create any intermediate directories
109109
std::string dirpath = gamedir + filepath;
110110
std::replace(dirpath.begin(), dirpath.end(), '\\', '/');
111-
dirpath = dirpath.substr(0, (gamedir + filepath).rfind('/'));
111+
dirpath = dirpath.substr(0, dirpath.rfind('/'));
112112
std::filesystem::create_directories(dirpath);
113113

114114
std::filesystem::remove(gamedir + filepath);

0 commit comments

Comments
 (0)