File diff r22682:df062b06a164 → r22683:4194bc6d3798
src/vehicle.cpp
Show inline comments
 
@@ -2677,7 +2677,7 @@ void Vehicle::RemoveFromShared()
 
	if (this->orders.list->GetNumVehicles() == 1) {
 
		/* When there is only one vehicle, remove the shared order list window. */
 
		DeleteWindowById(GetWindowClassForVehicleType(this->type), vli.Pack());
 
		InvalidateVehicleOrder(this->FirstShared(), 0);
 
		InvalidateVehicleOrder(this->FirstShared(), VIWD_MODIFY_ORDERS);
 
	} else if (were_first) {
 
		/* If we were the first one, update to the new first one.
 
		 * Note: FirstShared() is already the new first */