(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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user