mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-05 22:04:39 +00:00
(svn r14082) -Codechange: Make 'GetNextUnit()' more fool-proof wrt. real dualheads.
This commit is contained in:
parent
a8e85f00c9
commit
56459cab81
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user