summaryrefslogtreecommitdiff
path: root/depot.h
diff options
context:
space:
mode:
Diffstat (limited to 'depot.h')
-rw-r--r--depot.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/depot.h b/depot.h
index 502f4f136..da621e732 100644
--- a/depot.h
+++ b/depot.h
@@ -98,7 +98,7 @@ static inline DiagDirection GetDepotDirection(TileIndex tile, TransportType type
case TRANSPORT_RAIL:
case TRANSPORT_ROAD:
/* Rail and road store a diagonal direction in bits 0 and 1 */
- return _map5[tile] & 3;
+ return (DiagDirection)(_map5[tile] & 3);
case TRANSPORT_WATER:
/* Water is stubborn, it stores the directions in a different order. */
switch (_map5[tile] & 3) {