From c2ee87c1a99ece79fa625623b7b3f69f265c9e88 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 25 Nov 2013 16:22:29 +0000 Subject: (svn r26110) -Codechange: add guard for enterdir being valid in signal code --- src/signal.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/signal.cpp b/src/signal.cpp index 2d16e9a73..e8a6690fc 100644 --- a/src/signal.cpp +++ b/src/signal.cpp @@ -294,6 +294,7 @@ static SigFlags ExploreSegment(Owner owner) } } + assert(IsValidDiagDirection(enterdir)); TrackBits tracks = GetTrackBits(tile); // trackbits of tile TrackBits tracks_masked = (TrackBits)(tracks & _enterdir_to_trackbits[enterdir]); // only incidating trackbits -- cgit v1.2.3-70-g09d2