Skip to content

Commit

Permalink
fix #274157: Crash when opening score with more than 64 channels usin…
Browse files Browse the repository at this point in the history
…g Zerberus
  • Loading branch information
lasconic committed Jul 10, 2018
1 parent 02813ca commit c4307e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zerberus/zerberus.cpp
Expand Up @@ -176,6 +176,8 @@ void Zerberus::play(const Ms::PlayEvent& event)
{
if (busy)
return;
if (event.channel() >= MAX_CHANNEL)
return;
Channel* cp = _channel[int(event.channel())];
if (cp->instrument() == 0) {
// qDebug("Zerberus::play(): no instrument for channel %d", event.channel());
Expand Down

0 comments on commit c4307e1

Please sign in to comment.