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