From 155156cfb2df50970c1ad4c1fc05ad9d00c5baf9 Mon Sep 17 00:00:00 2001 From: Len Ovens Date: Tue, 14 Nov 2017 09:23:39 -0800 Subject: [PATCH] OSC personal monitor fix off by one bug. --- libs/surfaces/osc/osc_cue_observer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/surfaces/osc/osc_cue_observer.cc b/libs/surfaces/osc/osc_cue_observer.cc index 2777d39fba..7d838e8f5b 100644 --- a/libs/surfaces/osc/osc_cue_observer.cc +++ b/libs/surfaces/osc/osc_cue_observer.cc @@ -175,7 +175,7 @@ OSCCueObserver::send_end (uint32_t new_size) { send_connections.drop_connections (); if (new_size < sends.size()) { - for (uint32_t i = new_size; i <= sends.size(); i++) { + for (uint32_t i = new_size + 1; i <= sends.size(); i++) { _osc.float_message (string_compose ("/cue/send/fader/%1", i), 0, addr); _osc.float_message (string_compose ("/cue/send/enable/%1", i), 0, addr); _osc.text_message_with_id ("/cue/send/name", i, " ", true, addr);