Skip to content

Commit

Permalink
patternist: fix changing current pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Dec 24, 2024
1 parent 25df991 commit 9277634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/score-plugin-midi/Patternist/PatternModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void ProcessModel::setCurrentPattern(int n)
for(auto& lane : pattern.lanes)
std::fill(lane.pattern.begin(), lane.pattern.end(), false);

while(n >= patterns)
while(n >= std::ssize(m_patterns))
m_patterns.push_back(pattern);
}

Expand Down

0 comments on commit 9277634

Please sign in to comment.