summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/newgrf_station.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp
index e614c2dbb..5d2707b70 100644
--- a/src/newgrf_station.cpp
+++ b/src/newgrf_station.cpp
@@ -114,7 +114,7 @@ uint32 GetPlatformInfo(Axis axis, byte tile, int platforms, int length, int x, i
x -= platforms / 2;
y -= length / 2;
x = Clamp(x, -8, 7);
- y = Clamp(x, -8, 7);
+ y = Clamp(y, -8, 7);
SB(retval, 0, 4, y & 0xF);
SB(retval, 4, 4, x & 0xF);
} else {