Change: Don't replace stripped control codes with '?' for scripts. (#14028)

This commit is contained in:
Peter Nelson
2025-04-18 17:20:08 +01:00
committed by GitHub
parent 45917dbaa3
commit 67d6089f39
15 changed files with 16 additions and 16 deletions

View File

@@ -32,7 +32,7 @@
{
if (!IsValidBaseStation(station_id)) return std::nullopt;
return ::StrMakeValid(::GetString(::Station::IsValidID(station_id) ? STR_STATION_NAME : STR_WAYPOINT_NAME, station_id));
return ::StrMakeValid(::GetString(::Station::IsValidID(station_id) ? STR_STATION_NAME : STR_WAYPOINT_NAME, station_id), {});
}
/* static */ bool ScriptBaseStation::SetName(StationID station_id, Text *name)