Change type of track bits mask in MaskWireBits

This is to fix warnings from UndefinedBehaviorSanitizer.
This commit is contained in:
Jonathan G Rennison
2018-06-06 08:28:50 +01:00
parent 18d00ff47e
commit d8ab61cab3

View File

@@ -146,7 +146,7 @@ static TrackBits MaskWireBits(TileIndex t, TrackBits tracks)
/* If the tracks from either a diagonal crossing or don't overlap, both
* trackdirs have to be marked to mask the corresponding track bit. Else
* one marked trackdir is enough the mask the track bit. */
TrackBits mask;
TrackBitsByte mask;
if (tracks == TRACK_BIT_CROSS || !TracksOverlap(tracks)) {
/* If the tracks form either a diagonal crossing or don't overlap, both
* trackdirs have to be marked to mask the corresponding track bit. */