Mercurial > hg > openttd
changeset 7040:8eb3b26739ac draft
(svn r10304) -Fix [YAPF](r10301): removed assert which could violate without danger when searching for the nearest depot. From now on the segment can be closed without reason in that case (peter1138)
author | KUDr <KUDr@openttd.org> |
---|---|
date | Sun, 24 Jun 2007 14:40:54 +0000 |
parents | 9833784e408c |
children | f4cdaf92173e |
files | src/yapf/yapf_costrail.hpp |
diffstat | 1 files changed, 0 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/yapf/yapf_costrail.hpp +++ b/src/yapf/yapf_costrail.hpp @@ -424,7 +424,6 @@ /* Write back the segment information so it can be reused the next time. */ segment.m_cost = segment_cost; segment.m_end_segment_reason = end_segment_reason & ESRB_CACHED_MASK; - assert(segment.m_end_segment_reason != ESRB_NONE); /* Save end of segment back to the node. */ n.SetLastTileTrackdir(cur.tile, cur.td); }