diff options
author | frosch <frosch@openttd.org> | 2008-08-16 13:52:44 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-08-16 13:52:44 +0000 |
commit | 56459cab81f6a56d1fde29130670d001389ff7ce (patch) | |
tree | ef94e4a0a0db09b45e7db533e210de8d4885630f /src | |
parent | a8e85f00c9580b06934002a7fdfdc0f706d6ac9b (diff) | |
download | openttd-56459cab81f6a56d1fde29130670d001389ff7ce.tar.xz |
(svn r14082) -Codechange: Make 'GetNextUnit()' more fool-proof wrt. real dualheads.
Diffstat (limited to 'src')
-rw-r--r-- | src/train.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train.h b/src/train.h index 27e232935..0e92a962c 100644 --- a/src/train.h +++ b/src/train.h @@ -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; } |