From c9b0e9d25f444f628d1f88f177fee062f7ef95c4 Mon Sep 17 00:00:00 2001 From: alberth Date: Sat, 20 Mar 2010 17:08:16 +0000 Subject: (svn r19488) -Codechange: Use last_error data for removal in CmdRailTrackHelper() as well. --- src/rail_cmd.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index c25ba9107..61b004a10 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -789,7 +789,6 @@ static CommandCost CmdRailTrackHelper(TileIndex tile, DoCommandFlag flags, uint3 } if (had_success) return total_cost; - if (remove) return CMD_ERROR; return last_error; } -- cgit v1.2.3-70-g09d2