Changeset - r10302:f732c725263d
[Not reviewed]
master
0 1 0
rubidium - 16 years ago 2008-10-28 23:34:42
rubidium@openttd.org
(svn r14545) -Fix [FS#2386]: road vehicles sometimes never got their "slots" deallocated causing RVs not going to depot for service.
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/roadveh_cmd.cpp
Show inline comments
 
@@ -1796,7 +1796,10 @@ again:
 
		return false;
 
	}
 

	
 
	if (v->current_order.IsType(OT_LEAVESTATION) && IsDriveThroughStopTile(v->tile)) v->current_order.Free();
 
	if (v->current_order.IsType(OT_LEAVESTATION) && IsDriveThroughStopTile(v->tile)) {
 
		v->current_order.Free();
 
		ClearSlot(v);
 
	}
 

	
 
	/* Move to next frame unless vehicle arrived at a stop position
 
	 * in a depot or entered a tunnel/bridge */
0 comments (0 inline, 0 general)