summaryrefslogtreecommitdiff
path: root/src/yapf
diff options
context:
space:
mode:
authorKUDr <kudr@openttd.org>2007-06-24 14:40:54 +0000
committerKUDr <kudr@openttd.org>2007-06-24 14:40:54 +0000
commit59090c53d8bcefdec05ba58ab6d8b4a6776f8c00 (patch)
treea72bd5cd154a54c9a69ed9ac8cb542932ef078f1 /src/yapf
parentac9fb1c34eec776473218f58677b69189daa0634 (diff)
downloadopenttd-59090c53d8bcefdec05ba58ab6d8b4a6776f8c00.tar.xz
(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)
Diffstat (limited to 'src/yapf')
-rw-r--r--src/yapf/yapf_costrail.hpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/yapf/yapf_costrail.hpp b/src/yapf/yapf_costrail.hpp
index 103275fe7..c27a28167 100644
--- a/src/yapf/yapf_costrail.hpp
+++ b/src/yapf/yapf_costrail.hpp
@@ -424,7 +424,6 @@ no_entry_cost: // jump here at the beginning if the node has no parent (it is th
/* 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);
}