diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/train_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_gui.cpp b/src/train_gui.cpp index 6c5724af3..6f9d70bc1 100644 --- a/src/train_gui.cpp +++ b/src/train_gui.cpp @@ -240,7 +240,7 @@ void DrawTrainDetails(const Train *v, int left, int right, int y, int vscroll_po u = v; do { - SpriteID pal = (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(v); + SpriteID pal = (u->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(u); DrawSprite(u->GetImage(DIR_W), pal, x + WagonLengthToPixels(4 + dx), y + 6 + (is_custom_sprite(RailVehInfo(u->engine_type)->image_index) ? _traininfo_vehicle_pitch : 0)); dx += Train::From(u)->tcache.cached_veh_length; u = u->Next(); |