(svn r26110) -Codechange: add guard for enterdir being valid in signal code

This commit is contained in:
rubidium 2013-11-25 16:22:29 +00:00
parent 8394abb2f5
commit ae3a178a25

View File

@ -294,6 +294,7 @@ static SigFlags ExploreSegment(Owner owner)
} }
} }
assert(IsValidDiagDirection(enterdir));
TrackBits tracks = GetTrackBits(tile); // trackbits of tile TrackBits tracks = GetTrackBits(tile); // trackbits of tile
TrackBits tracks_masked = (TrackBits)(tracks & _enterdir_to_trackbits[enterdir]); // only incidating trackbits TrackBits tracks_masked = (TrackBits)(tracks & _enterdir_to_trackbits[enterdir]); // only incidating trackbits