File diff r27505:d725794d218c → r27506:5d6fb3346eaa
src/station_cmd.cpp
Show inline comments
 
@@ -461,11 +461,9 @@ void UpdateAllStationVirtCoords()
 

	
 
void BaseStation::FillCachedName() const
 
{
 
	char buf[MAX_LENGTH_STATION_NAME_CHARS * MAX_CHAR_LENGTH];
 
	int64 args_array[] = { this->index };
 
	StringParameters tmp_params(args_array);
 
	char *end = GetStringWithArgs(buf, Waypoint::IsExpected(this) ? STR_WAYPOINT_NAME : STR_STATION_NAME, &tmp_params, lastof(buf));
 
	this->cached_name.assign(buf, end);
 
	this->cached_name = GetStringWithArgs(Waypoint::IsExpected(this) ? STR_WAYPOINT_NAME : STR_STATION_NAME, &tmp_params);
 
}
 

	
 
void ClearAllStationCachedNames()