summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-03-20 17:08:16 +0000
committeralberth <alberth@openttd.org>2010-03-20 17:08:16 +0000
commitc9b0e9d25f444f628d1f88f177fee062f7ef95c4 (patch)
tree58c68cc38505b783a69cdd39d0e57033813bed15
parenta9d4eb86b8dc6e7cf8b5897d180edf6f78072115 (diff)
downloadopenttd-c9b0e9d25f444f628d1f88f177fee062f7ef95c4.tar.xz
(svn r19488) -Codechange: Use last_error data for removal in CmdRailTrackHelper() as well.
-rw-r--r--src/rail_cmd.cpp1
1 files changed, 0 insertions, 1 deletions
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;
}