summaryrefslogtreecommitdiff
path: root/src/rail_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r--src/rail_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp
index e0f85675c..f90be4125 100644
--- a/src/rail_cmd.cpp
+++ b/src/rail_cmd.cpp
@@ -837,7 +837,7 @@ CommandCost CmdBuildTrainDepot(TileIndex tile, DoCommandFlag flags, uint32 p1, u
Slope tileh = GetTileSlope(tile, NULL);
- DiagDirection dir = Extract<DiagDirection, 0>(p2);
+ DiagDirection dir = Extract<DiagDirection, 0, 2>(p2);
/* Prohibit construction if
* The tile is non-flat AND