1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-31 10:29:10 +00:00

(svn r14082) -Codechange: Make 'GetNextUnit()' more fool-proof wrt. real dualheads.

This commit is contained in:
frosch
2008-08-16 13:52:44 +00:00
parent a8e85f00c9
commit 56459cab81

View File

@@ -255,7 +255,7 @@ static inline Vehicle *GetNextUnit(Vehicle *v)
{
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;
}