diff options
Diffstat (limited to 'src/train.h')
-rw-r--r-- | src/train.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/train.h b/src/train.h index 1b472d4c4..fcdadc481 100644 --- a/src/train.h +++ b/src/train.h @@ -267,7 +267,7 @@ struct Train : public GroundVehicle<Train, VEH_TRAIN> { * Result is undefined for normal engine. * @return next part of articulated engine */ - FORCEINLINE Train *GetNextArticPart() const + FORCEINLINE Train *GetNextArticulatedPart() const { assert(this->HasArticulatedPart()); return this->Next(); @@ -302,7 +302,7 @@ struct Train : public GroundVehicle<Train, VEH_TRAIN> { FORCEINLINE Train *GetLastEnginePart() { Train *v = this; - while (v->HasArticulatedPart()) v = v->GetNextArticPart(); + while (v->HasArticulatedPart()) v = v->GetNextArticulatedPart(); return v; } @@ -313,7 +313,7 @@ struct Train : public GroundVehicle<Train, VEH_TRAIN> { FORCEINLINE Train *GetNextVehicle() const { const Train *v = this; - while (v->HasArticulatedPart()) v = v->GetNextArticPart(); + while (v->HasArticulatedPart()) v = v->GetNextArticulatedPart(); /* v now contains the last artic part in the engine */ return v->Next(); |