diff options
author | rubidium <rubidium@openttd.org> | 2009-05-24 20:29:04 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-05-24 20:29:04 +0000 |
commit | 0d99b6c71cd096599b4805d230483f3e4e958af1 (patch) | |
tree | 463b69c3b2ea6f697506be055622229767dfebc4 /src/roadveh_gui.cpp | |
parent | 36e71c8df6fe1f4c303d98b609bb9cdd0c4b7e75 (diff) | |
download | openttd-0d99b6c71cd096599b4805d230483f3e4e958af1.tar.xz |
(svn r16421) -Codechange: do not unnecessarily remove constness or unnecessarily add it.
Diffstat (limited to 'src/roadveh_gui.cpp')
-rw-r--r-- | src/roadveh_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_gui.cpp b/src/roadveh_gui.cpp index 5d0f950f2..09ebd1fc9 100644 --- a/src/roadveh_gui.cpp +++ b/src/roadveh_gui.cpp @@ -130,7 +130,7 @@ void DrawRoadVehImage(const Vehicle *v, int x, int y, VehicleID selection, int c int highlight_w = 0; for (int dx = 0; v != NULL && dx < max_length ; v = v->Next()) { - int width = ((RoadVehicle *)v)->rcache.cached_veh_length; + int width = ((const RoadVehicle *)v)->rcache.cached_veh_length; if (dx + width > 0 && dx <= max_length) { SpriteID pal = (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(v); |