summaryrefslogtreecommitdiff
path: root/src/roadveh_gui.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-06-25 14:46:32 +0000
committerpeter1138 <peter1138@openttd.org>2007-06-25 14:46:32 +0000
commitd69589b3c2c1844a966ea47c568f27b86d60ce8a (patch)
treeaa01bc9f5e83f354abe440316e280459e85e0fa9 /src/roadveh_gui.cpp
parenteb6594caa840da0b4d8a16154cc2c0353d3eb238 (diff)
downloadopenttd-d69589b3c2c1844a966ea47c568f27b86d60ce8a.tar.xz
(svn r10324) -Codechange: reference engine names by index
Diffstat (limited to 'src/roadveh_gui.cpp')
-rw-r--r--src/roadveh_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_gui.cpp b/src/roadveh_gui.cpp
index ab94fb855..10fd3a18d 100644
--- a/src/roadveh_gui.cpp
+++ b/src/roadveh_gui.cpp
@@ -117,7 +117,7 @@ static void RoadVehDetailsWndProc(Window *w, WindowEvent *e)
DrawRoadVehImage(v, 3, 57, 0, INVALID_VEHICLE);
- SetDParam(0, GetCustomEngineName(v->engine_type));
+ SetDParam(0, v->engine_type);
SetDParam(1, v->build_year);
SetDParam(2, v->value);
DrawString(34, 57 + y_offset, STR_9011_BUILT_VALUE, 0);