From fe223eccf40cd7cf1d81053c5565e9cdbffe414c Mon Sep 17 00:00:00 2001 From: Darkvater Date: Tue, 10 May 2005 08:45:55 +0000 Subject: (svn r2289) - Fix (regression): check p1 param of road-depot building instead of unused p2 (typo). Thanks peter1138. --- road_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-70-g09d2