summaryrefslogtreecommitdiff
path: root/vehicle.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-11-16 14:07:34 +0000
committertron <tron@openttd.org>2005-11-16 14:07:34 +0000
commit89cfe202b8f00aab3d4956eb0ba1b0436cbc4cf5 (patch)
tree44a3729c9f3a8af0b9157ed9316a0de163729f33 /vehicle.c
parent1bffec2c272bee9f95d6e1b4498eb4566cd649e1 (diff)
downloadopenttd-89cfe202b8f00aab3d4956eb0ba1b0436cbc4cf5.tar.xz
(svn r3208) Don't explicitly pass the engine type to look for to GetRearEngine(), because it's the engine type of the vehicle which gets passed as first parameter
Diffstat (limited to 'vehicle.c')
-rw-r--r--vehicle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vehicle.c b/vehicle.c
index 8c386b09c..8fafc28e4 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -1491,7 +1491,7 @@ static Vehicle *GetNextEnginePart(Vehicle *v)
switch (v->type) {
case VEH_Train:
if (RailVehInfo(v->engine_type)->flags & RVI_MULTIHEAD) {
- return GetRearEngine(v, v->engine_type);
+ return GetRearEngine(v);
}
if (v->next != NULL && v->next->subtype == TS_Artic_Part) return v->next;
break;