mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-30 18:09:09 +00:00
Codechange: do not keep local variable for temporary string parameters
This commit is contained in:
@@ -377,8 +377,7 @@ static void FiosGetFileList(SaveLoadOperation fop, FiosGetTypeAndNameProc *callb
|
||||
fios->type = FIOS_TYPE_DIR;
|
||||
fios->mtime = 0;
|
||||
fios->name = d_name;
|
||||
std::string dirname = fios->name + PATHSEP;
|
||||
SetDParamStr(0, dirname);
|
||||
SetDParamStr(0, fios->name + PATHSEP);
|
||||
fios->title = GetString(STR_SAVELOAD_DIRECTORY);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user