summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-25 16:22:29 +0000
committerrubidium <rubidium@openttd.org>2013-11-25 16:22:29 +0000
commitc2ee87c1a99ece79fa625623b7b3f69f265c9e88 (patch)
treeb697b7e322263369a1b722a418dba58b68246ce1 /src
parent00264cc708971833a7c585fc22f11b81e13eee1d (diff)
downloadopenttd-c2ee87c1a99ece79fa625623b7b3f69f265c9e88.tar.xz
(svn r26110) -Codechange: add guard for enterdir being valid in signal code
Diffstat (limited to 'src')
-rw-r--r--src/signal.cpp1
1 files changed, 1 insertions, 0 deletions
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