diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -1046,11 +1046,8 @@ public: /** Filter station classes by class name. */ static bool CDECL TagNameFilter(StationClassID const * sc, StringFilter &filter) { - char buffer[DRAW_STRING_BUFFER]; - GetString(buffer, StationClass::Get(*sc)->name, lastof(buffer)); - filter.ResetState(); - filter.AddLine(buffer); + filter.AddLine(GetString(StationClass::Get(*sc)->name)); return filter.GetState(); }