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
commitb1b26ddb79df38f22bd56724521b94e06b894e4d (patch)
treed5780b33a77161f8dadd239cabf3cb041afcddae /src/yapf/yapf_costrail.hpp
parentf0137dea782cb151e4a11046260581c81cafae76 (diff)
downloadopenttd-b1b26ddb79df38f22bd56724521b94e06b894e4d.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;