summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/train_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_gui.cpp b/src/train_gui.cpp
index 22efbe6d4..c2c6a8afd 100644
--- a/src/train_gui.cpp
+++ b/src/train_gui.cpp
@@ -234,7 +234,7 @@ void DrawTrainDetails(const Train *v, int left, int right, int y, int vscroll_po
Point offset;
int width = u->GetDisplayImageWidth(&offset);
SpriteID pal = (u->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(u);
- DrawSprite(u->GetImage(DIR_W), pal, x + offset.x, y + 6 + offset.y);
+ DrawSprite(u->GetImage(DIR_W), pal, px + offset.x, y + 6 + offset.y);
px += width;
u = u->Next();
} while (u != NULL && u->IsArticulatedPart() && u->cargo_cap == 0);