Codechange: pass string parameters by reference

This commit is contained in:
Rubidium
2023-06-13 23:52:43 +02:00
committed by rubidium42
parent 43f91bc50c
commit 0a5e58451b
6 changed files with 128 additions and 128 deletions

View File

@@ -463,7 +463,7 @@ void BaseStation::FillCachedName() const
{
int64 args_array[] = { this->index };
StringParameters tmp_params(args_array);
this->cached_name = GetStringWithArgs(Waypoint::IsExpected(this) ? STR_WAYPOINT_NAME : STR_STATION_NAME, &tmp_params);
this->cached_name = GetStringWithArgs(Waypoint::IsExpected(this) ? STR_WAYPOINT_NAME : STR_STATION_NAME, tmp_params);
}
void ClearAllStationCachedNames()