Skip to content

Commit 3be53d8

Browse files
committed
Fixed crash in ChannelSelector::setActiveChannels
1 parent 5aa5283 commit 3be53d8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Source/Processors/Editors/ChannelSelector.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,10 @@ void ChannelSelector::setActiveChannels(Array<int> a)
329329

330330
for (int i = 0; i < a.size(); i++)
331331
{
332-
parameterButtons[a[i]]->setToggleState(true, dontSendNotification);
332+
if (a[i] < parameterButtons.size())
333+
{
334+
parameterButtons[a[i]]->setToggleState(true, dontSendNotification);
335+
}
333336
}
334337
}
335338

0 commit comments

Comments
 (0)