# HG changeset patch # User rubidium # Date 2010-10-03 19:17:53 # Node ID ac4652ad4e43b2d6811d0a1d3e9818650365bc05 # Parent 51d6f8f52b3dd291e26018d79945d78a7c27f4cd (svn r20894) -Fix [FS#4148] (r20772): use correct company name for group window title (sbr) diff --git a/src/group_gui.cpp b/src/group_gui.cpp --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -280,7 +280,7 @@ public: * We list all vehicles or ungrouped vehicles */ if (IsDefaultGroupID(this->vli.index) || IsAllGroupID(this->vli.index)) { SetDParam(0, STR_COMPANY_NAME); - SetDParam(1, GB(this->window_number, 0, 8)); + SetDParam(1, this->vli.company); SetDParam(2, this->vehicles.Length()); SetDParam(3, this->vehicles.Length()); } else {