summaryrefslogtreecommitdiff
path: root/roadveh_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-12-15 21:25:33 +0000
committertron <tron@openttd.org>2004-12-15 21:25:33 +0000
commita2374e29882cabb0a00c9461fc429b5e98dad7a9 (patch)
treed613cbe8c0fa74b9310aa8e3cdfdc4cabbceb3bf /roadveh_gui.c
parent2f6a26ab2d8b8781dc78063f54e0102e5191c63a (diff)
downloadopenttd-a2374e29882cabb0a00c9461fc429b5e98dad7a9.tar.xz
(svn r1109) Fix c&p bug: In vehicle lists a name was displayed for road vehicles even if they had none
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 c9682ecf9..cf2be1ea7 100644
--- a/roadveh_gui.c
+++ b/roadveh_gui.c
@@ -795,7 +795,7 @@ static void PlayerRoadVehWndProc(Window *w, WindowEvent *e)
SetDParam(1, v->profit_last_year);
DrawString(x + 24, y + 18, STR_0198_PROFIT_THIS_YEAR_LAST_YEAR, 0);
- if (v->string_id != STR_SV_TRAIN_NAME) {
+ if (v->string_id != STR_SV_ROADVEH_NAME) {
SetDParam(0, v->string_id);
DrawString(x + 24, y, STR_01AB, 0);
}