summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rail_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index c41aa4ee2..c4c1d86d7 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -991,7 +991,7 @@ static int32 DoConvertRail(TileIndex tile, uint totype, bool exec)
// change type.
if (exec) {
- SB(_m[tile].m3, 4, 4, totype);
+ SB(_m[tile].m3, 0, 4, totype);
MarkTileDirtyByTile(tile);
}