diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index febaf6ed11..792029c9cd 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -3785,7 +3785,7 @@ Session::remove_processor (Processor* processor) } else if ((send = dynamic_cast (processor)) != 0) { send_bitset[send->bit_slot()] = false; } else if ((retrn = dynamic_cast (processor)) != 0) { - return_bitset[send->bit_slot()] = false; + return_bitset[retrn->bit_slot()] = false; } set_dirty();