uimenu: Fix: Edit OP parameter from selected TG (#68)

When editing an OP parameter, the selected TG was not used,
but always TG1 instead.
pull/69/head
Rene Stange 3 years ago committed by GitHub
parent f915ce6b01
commit f67afbd381
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/uimenu.cpp

@ -564,7 +564,7 @@ void CUIMenu::EditVoiceParameter (CUIMenu *pUIMenu, TMenuEvent Event)
void CUIMenu::EditOPParameter (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 nOP = pUIMenu->m_nMenuStackParameter[pUIMenu->m_nCurrentMenuDepth-1];
unsigned nParam = pUIMenu->m_nCurrentParameter; unsigned nParam = pUIMenu->m_nCurrentParameter;

Loading…
Cancel
Save