mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-08 23:19:40 +00:00
(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)
This commit is contained in:
parent
ac9fb1c34e
commit
59090c53d8
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user