From f67afbd38186c1d5732e99e3f811ff7599716810 Mon Sep 17 00:00:00 2001 From: Rene Stange Date: Mon, 4 Apr 2022 05:17:15 +0200 Subject: [PATCH] uimenu: Fix: Edit OP parameter from selected TG (#68) When editing an OP parameter, the selected TG was not used, but always TG1 instead. --- src/uimenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uimenu.cpp b/src/uimenu.cpp index dceb7b2..c2cd38d 100644 --- a/src/uimenu.cpp +++ b/src/uimenu.cpp @@ -564,7 +564,7 @@ void CUIMenu::EditVoiceParameter (CUIMenu *pUIMenu, TMenuEvent Event) void CUIMenu::EditOPParameter (CUIMenu *pUIMenu, TMenuEvent Event) { - unsigned nTG = pUIMenu->m_nMenuStackParameter[pUIMenu->m_nCurrentMenuDepth-2]; + unsigned nTG = pUIMenu->m_nMenuStackParameter[pUIMenu->m_nCurrentMenuDepth-3]; unsigned nOP = pUIMenu->m_nMenuStackParameter[pUIMenu->m_nCurrentMenuDepth-1]; unsigned nParam = pUIMenu->m_nCurrentParameter;