summaryrefslogtreecommitdiff
path: root/station_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'station_map.h')
-rw-r--r--station_map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/station_map.h b/station_map.h
index 4b4bb8710..822e79745 100644
--- a/station_map.h
+++ b/station_map.h
@@ -138,7 +138,7 @@ static inline bool IsRoadStopTile(TileIndex t)
static inline DiagDirection GetRoadStopDir(TileIndex t)
{
assert(IsRoadStopTile(t));
- return (GetStationGfx(t) - GFX_TRUCK_BASE) & 3;
+ return (DiagDirection)((GetStationGfx(t) - GFX_TRUCK_BASE) & 3);
}
static inline bool IsOilRig(TileIndex t)