summaryrefslogtreecommitdiff
path: root/src/yapf/yapf_costrail.hpp
diff options
context:
space:
mode:
authorKUDr <kudr@openttd.org>2007-07-09 18:27:42 +0000
committerKUDr <kudr@openttd.org>2007-07-09 18:27:42 +0000
commitd3c7a7fa8c921a6cc9b5c32ad7861c5592f66c36 (patch)
treed5780b33a77161f8dadd239cabf3cb041afcddae /src/yapf/yapf_costrail.hpp
parentd9a2e25dd7251abf789882d0242ad02d051189e0 (diff)
downloadopenttd-d3c7a7fa8c921a6cc9b5c32ad7861c5592f66c36.tar.xz
(svn r10489) -Codechange [YAPF]: FollowTrack_t now has new data member - m_err. It indicates the reason why the given track/trackdir can't be followed when method CFollowTrackT<>::Follow() returned false.
Diffstat (limited to 'src/yapf/yapf_costrail.hpp')
-rw-r--r--src/yapf/yapf_costrail.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/yapf/yapf_costrail.hpp b/src/yapf/yapf_costrail.hpp
index 477484994..a95b3c9a6 100644
--- a/src/yapf/yapf_costrail.hpp
+++ b/src/yapf/yapf_costrail.hpp
@@ -376,6 +376,7 @@ no_entry_cost: // jump here at the beginning if the node has no parent (it is th
tf_local.Init(v, &Yapf().m_perf_ts_cost);
if (!tf_local.Follow(cur.tile, cur.td)) {
+ assert(tf_local.m_err != TrackFollower::EC_NONE);
/* Can't move to the next tile (EOL?). */
end_segment_reason |= ESRB_DEAD_END;
break;