Skip to content

Commit

Permalink
Merge branch 'master' into handle
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Dec 21, 2023
2 parents ac08211 + 97c77d1 commit f0bfc90
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion VortexEngine/src/Menus/MenuList/PatternSelect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ void PatternSelect::onShortClick()
// double click = skip 10
bool doSkip = g_pButton->onConsecutivePresses(2);
MAP_FOREACH_LED(m_targetLeds) {
uint8_t &arg = m_previewMode.getPattern(pos)->argRef(m_argIndex);
Pattern *pat = m_previewMode.getPattern(pos);
if (pat->getNumArgs() <= m_argIndex) {
continue;
}
uint8_t &arg = pat->argRef(m_argIndex);
if (doSkip) {
arg += 10 - (arg % 10);
} else {
Expand Down

0 comments on commit f0bfc90

Please sign in to comment.