summaryrefslogtreecommitdiff
path: root/src/rail_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rail_map.h')
-rw-r--r--src/rail_map.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rail_map.h b/src/rail_map.h
index bd580d32a..74afe5ace 100644
--- a/src/rail_map.h
+++ b/src/rail_map.h
@@ -115,7 +115,7 @@ static inline bool IsRailDepotTile(TileIndex t)
*/
static inline RailType GetRailType(TileIndex t)
{
- return (RailType)GB(_me[t].m8, 0, 4);
+ return (RailType)GB(_me[t].m8, 0, 6);
}
/**
@@ -125,7 +125,7 @@ static inline RailType GetRailType(TileIndex t)
*/
static inline void SetRailType(TileIndex t, RailType r)
{
- SB(_me[t].m8, 0, 4, r);
+ SB(_me[t].m8, 0, 6, r);
}