summaryrefslogtreecommitdiff
path: root/src/roadveh.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/roadveh.h')
-rw-r--r--src/roadveh.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh.h b/src/roadveh.h
index 5c62fcee0..1c545ea43 100644
--- a/src/roadveh.h
+++ b/src/roadveh.h
@@ -41,7 +41,7 @@ static inline void SetRoadVehArticPart(Vehicle *v)
static inline bool RoadVehHasArticPart(const Vehicle *v)
{
assert(v->type == VEH_ROAD);
- return v->next != NULL && IsRoadVehArticPart(v->next);
+ return v->Next() != NULL && IsRoadVehArticPart(v->Next());
}