summaryrefslogtreecommitdiff
path: root/roadveh_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-02-04 20:40:04 +0000
committertron <tron@openttd.org>2005-02-04 20:40:04 +0000
commit4b71f9126e69aa1cb9c8293bc836401dfe7bdda4 (patch)
tree08aa6c9e8663023614f86710f85fdd0b8d8783b9 /roadveh_gui.c
parentb4c3f9aaf0e9b922d09060f810b9ee2b3446d6c9 (diff)
downloadopenttd-4b71f9126e69aa1cb9c8293bc836401dfe7bdda4.tar.xz
(svn r1798) GetFoo(i)->index is per definition i, so replace the former with the latter
Diffstat (limited to 'roadveh_gui.c')
-rw-r--r--roadveh_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/roadveh_gui.c b/roadveh_gui.c
index 009b8b6a4..0b0c4704e 100644
--- a/roadveh_gui.c
+++ b/roadveh_gui.c
@@ -799,7 +799,7 @@ static void PlayerRoadVehWndProc(Window *w, WindowEvent *e)
w->widget[1].unkA = STR_9001_ROAD_VEHICLES;
} else {
/* Station Name -- (###) Road vehicles */
- SetDParam(0, GetStation(station)->index);
+ SetDParam(0, station);
SetDParam(1, w->vscroll.count);
w->widget[1].unkA = STR_SCHEDULED_ROAD_VEHICLES;
}