(svn r11003) -Codechange: replace Vehicle->next to Vehicle->Next() and Vehicle->SetNext() so we can trap instances that change a next pointer and (in the future) update the first/previous pointers based on that.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user