commit 71a3691def49088e4b78339c8fd235597a5202dc parent e19b96b055c288f9148c477a66a4d468fa525665 Author: dsp56300 <dsp56300@users.noreply.github.com> Date: Sat, 20 Apr 2024 12:02:06 +0200 fix switch not working in multi mode Diffstat:
M | source/xtJucePlugin/xtController.cpp | | | 2 | +- |
M | source/xtJucePlugin/xtParts.cpp | | | 2 | +- |
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/source/xtJucePlugin/xtController.cpp b/source/xtJucePlugin/xtController.cpp @@ -611,7 +611,7 @@ void Controller::requestAllPatches() const { requestMulti(xt::LocationH::MultiDumpMultiEditBuffer, 0); - // the other singles 1-15 are requested one after the other after a single has been received + // the other singles 1-7 are requested one after the other after a single has been received requestSingle(xt::LocationH::SingleEditBufferMultiMode, 0); } else diff --git a/source/xtJucePlugin/xtParts.cpp b/source/xtJucePlugin/xtParts.cpp @@ -36,7 +36,7 @@ namespace xtJucePlugin return false; }; - if(_part < m_parts.size()) + if(_part >= m_parts.size()) return fail(); if(_part > 0 && !m_editor.getXtController().isMultiMode()) return fail();