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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user