(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)
authorKUDr
Sun, 24 Jun 2007 14:40:54 +0000
changeset 7040 87866b343dd5
parent 7039 9416f123c71c
child 7041 99d88de7c511
(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)
src/yapf/yapf_costrail.hpp
--- a/src/yapf/yapf_costrail.hpp	Sun Jun 24 13:30:03 2007 +0000
+++ b/src/yapf/yapf_costrail.hpp	Sun Jun 24 14:40:54 2007 +0000
@@ -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);
 		}