# HG changeset patch # User alberth # Date 2010-03-20 17:08:16 # Node ID 868b30887683dd4061671dfa9dc670e8d49f807d # Parent aa3ca3f4aea691cd01c3ab286cacd93d3342de62 (svn r19488) -Codechange: Use last_error data for removal in CmdRailTrackHelper() as well. diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -789,7 +789,6 @@ static CommandCost CmdRailTrackHelper(Ti } if (had_success) return total_cost; - if (remove) return CMD_ERROR; return last_error; }