Changeset - r9927:55cf81d9e7c1
[Not reviewed]
master
0 1 0
frosch - 16 years ago 2008-08-16 13:52:44
frosch@openttd.org
(svn r14082) -Codechange: Make 'GetNextUnit()' more fool-proof wrt. real dualheads.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/train.h
Show inline comments
 
@@ -255,7 +255,7 @@ static inline Vehicle *GetNextUnit(Vehic
 
{
 
	assert(v->type == VEH_TRAIN);
 
	v = GetNextVehicle(v);
 
	if (v != NULL && IsRearDualheaded(v)) v = v->Next();
 
	if (v != NULL && IsRearDualheaded(v)) v = GetNextVehicle(v);
 

	
 
	return v;
 
}
0 comments (0 inline, 0 general)