mirror of https://github.com/OpenTTD/OpenTTD
(svn r19488) -Codechange: Use last_error data for removal in CmdRailTrackHelper() as well.
parent
a9d4eb86b8
commit
c9b0e9d25f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue