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 1983b99ff..55ef18663 100644 --- a/src/train.h +++ b/src/train.h @@ -200,7 +200,7 @@ static inline void ClearMultiheaded(Vehicle *v) static inline bool EngineHasArticPart(const Vehicle *v) { assert(v->type == VEH_TRAIN); - return (v->next != NULL && IsArticulatedPart(v->next)); + return (v->Next() != NULL && IsArticulatedPart(v->Next())); } /** @@ -211,7 +211,7 @@ static inline bool EngineHasArticPart(const Vehicle *v) static inline Vehicle *GetNextArticPart(const Vehicle *v) { assert(EngineHasArticPart(v)); - return v->next; + return v->Next(); } /** Get the last part of a multi-part engine. @@ -235,7 +235,7 @@ static inline Vehicle *GetNextVehicle(const Vehicle *v) while (EngineHasArticPart(v)) v = GetNextArticPart(v); /* v now contains the last artic part in the engine */ - return v->next; + return v->Next(); } void ConvertOldMultiheadToNew(); |