File diff r28741:6064b2714f1b → r28742:e80d6a5b649a
src/vehicle.cpp
Show inline comments
 
@@ -862,6 +862,8 @@ void Vehicle::PreDestructor()
 
			/* Leave the drive through roadstop, when you have not already left it. */
 
			RoadStop::GetByTile(v->tile, GetRoadStopType(v->tile))->Leave(v);
 
		}
 

	
 
		if (v->disaster_vehicle != INVALID_VEHICLE) ReleaseDisasterVehicle(v->disaster_vehicle);
 
	}
 

	
 
	if (this->Previous() == nullptr) {
 
@@ -884,8 +886,6 @@ void Vehicle::PreDestructor()
 
	DeleteDepotHighlightOfVehicle(this);
 

	
 
	StopGlobalFollowVehicle(this);
 

	
 
	ReleaseDisastersTargetingVehicle(this->index);
 
}
 

	
 
Vehicle::~Vehicle()