diff --git a/src/object_gui.cpp b/src/object_gui.cpp --- a/src/object_gui.cpp +++ b/src/object_gui.cpp @@ -142,11 +142,9 @@ public: static bool CDECL TagNameFilter(ObjectClassID const *oc, StringFilter &filter) { ObjectClass *objclass = ObjectClass::Get(*oc); - char buffer[DRAW_STRING_BUFFER]; - GetString(buffer, objclass->name, lastof(buffer)); filter.ResetState(); - filter.AddLine(buffer); + filter.AddLine(GetString(objclass->name)); return filter.GetState(); }