summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--road_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/road_cmd.c b/road_cmd.c
index 0a89492da..8122fc9c8 100644
--- a/road_cmd.c
+++ b/road_cmd.c
@@ -623,7 +623,7 @@ int32 CmdBuildRoadDepot(int x, int y, uint32 flags, uint32 p1, uint32 p2)
SET_EXPENSES_TYPE(EXPENSES_CONSTRUCTION);
- if (p2 > 3) return CMD_ERROR; // check direction
+ if (p1 > 3) return CMD_ERROR; // check direction
FindLandscapeHeight(&ti, x, y);