File diff r13925:e96b87452ce6 → r13926:df3a72e4160c
src/vehicle.cpp
Show inline comments
 
@@ -1613,12 +1613,14 @@ CommandCost Vehicle::SendToDepot(DoComma
 
	return CommandCost();
 

	
 
}
 

	
 
void Vehicle::SetNext(Vehicle *next)
 
{
 
	assert(this != next);
 

	
 
	if (this->next != NULL) {
 
		/* We had an old next vehicle. Update the first and previous pointers */
 
		for (Vehicle *v = this->next; v != NULL; v = v->Next()) {
 
			v->first = this->next;
 
		}
 
		this->next->previous = NULL;