diff options
-rw-r--r-- | src/town_cmd.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index bff65782b..1fce94752 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -640,6 +640,7 @@ static RoadBits GetTownRoadMask(TileIndex tile) TrackBits b = GetAnyRoadTrackBits(tile, ROADTYPE_ROAD); RoadBits r = ROAD_NONE; + if (b == TRACK_BIT_NONE) return r; if (b & TRACK_BIT_X) r |= ROAD_X; if (b & TRACK_BIT_Y) r |= ROAD_Y; if (b & TRACK_BIT_UPPER) r |= ROAD_NE | ROAD_NW; |