Codechange: make creating temporary StringParameters easier

This commit is contained in:
Rubidium
2023-06-13 23:46:08 +02:00
committed by rubidium42
parent 5bac27287e
commit 3e8f8c55c2
5 changed files with 76 additions and 93 deletions

View File

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