File diff r10137:a86e717e4378 → r10138:5b63d0853f23
src/vehicle.cpp
Show inline comments
 
@@ -651,6 +651,11 @@ void Vehicle::PreDestructor()
 
	}
 

	
 
	if (this->type == VEH_ROAD) ClearSlot(this);
 
	if (this->type == VEH_AIRCRAFT && this->IsPrimaryVehicle()) {
 
		Station *st = GetStation(this->u.air.targetairport);
 
		const AirportFTA *layout = st->Airport()->layout;
 
		CLRBITS(st->airport_flags, layout[this->u.air.previous_pos].block | layout[this->u.air.pos].block);
 
	}
 

	
 
	if (this->type != VEH_TRAIN || (this->type == VEH_TRAIN && (IsFrontEngine(this) || IsFreeWagon(this)))) {
 
		InvalidateWindowData(WC_VEHICLE_DEPOT, this->tile);