Skip to content
Snippets Groups Projects
Commit c4db3564 authored by Aaron Cuevas Lopez's avatar Aaron Cuevas Lopez
Browse files

Fix crash in channel mapper when removing input channels

parent d7810b4e
Branches
Tags
No related merge requests found
......@@ -78,7 +78,7 @@ void ChannelMappingNode::updateSettings()
for (int i = 0; i < getNumInputs(); i++)
{
if (enabledChannelArray[channelArray[i]])
if ((enabledChannelArray[channelArray[i]]) && (channelArray[i] < oldChannels.size()))
{
oldChannels[channelArray[i]]->mappedIndex = settings.numOutputs;
channels.add(oldChannels[channelArray[i]]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment