summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-10-03 19:17:53 +0000
committerrubidium <rubidium@openttd.org>2010-10-03 19:17:53 +0000
commit2e8e14826274cd1a1037ffc5f8663b9cb6ce609b (patch)
tree31c02ac5ede767cf79ba108d152e319dd22f2c22
parent4f9f90f2343276ff23e36c7277abfb2b78f509d5 (diff)
downloadopenttd-2e8e14826274cd1a1037ffc5f8663b9cb6ce609b.tar.xz
(svn r20894) -Fix [FS#4148] (r20772): use correct company name for group window title (sbr)
-rw-r--r--src/group_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp
index bdbc41e6f..bae682c9e 100644
--- 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 {