From b6766c2ed5fa7e3cb703e1dcfdeacb26cde7d07e Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 3 Oct 2011 17:20:26 +0000 Subject: (svn r22976) -Codechange: Split group statistics into separate struct. --- src/group_gui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/group_gui.cpp') diff --git a/src/group_gui.cpp b/src/group_gui.cpp index e5762ca26..7ab0f82d8 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -303,8 +303,8 @@ public: SetDParam(0, STR_GROUP_NAME); SetDParam(1, g->index); - SetDParam(2, g->num_vehicle); - SetDParam(3, g->num_vehicle); + SetDParam(2, g->statistics.num_vehicle); + SetDParam(3, g->statistics.num_vehicle); } break; } @@ -391,7 +391,7 @@ public: DrawString(r.left + WD_FRAMERECT_LEFT + 8, r.right - WD_FRAMERECT_RIGHT - 8, y1, STR_GROUP_NAME, (this->vli.index == g->index) ? TC_WHITE : TC_BLACK); /* draw the number of vehicles of the group */ - SetDParam(0, g->num_vehicle); + SetDParam(0, g->statistics.num_vehicle); DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, y1 + 1, STR_TINY_COMMA, (this->vli.index == g->index) ? TC_WHITE : TC_BLACK, SA_RIGHT); y1 += this->tiny_step_height; -- cgit v1.2.3-54-g00ecf