Correct cleaning string and remove unused vars

This commit is contained in:
lainon 2022-09-30 12:26:30 +03:00
parent 89dab444c4
commit fec708489a
32 changed files with 38 additions and 48 deletions

View file

@ -1488,7 +1488,7 @@ void GameSettingsScreen::TriggerRestart(const char *why) {
std::string param = "--gamesettings";
if (editThenRestore_) {
// We won't pass the gameID, so don't resume back into settings.
param = "";
param.clear();
} else if (!gamePath_.empty()) {
param += " \"" + ReplaceAll(ReplaceAll(gamePath_.ToString(), "\\", "\\\\"), "\"", "\\\"") + "\"";
}