1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-30 02:50:05 +00:00

Fixed modulo zero bug in VST bus arrangement

This commit is contained in:
tpoole 2016-09-01 09:18:06 +01:00
parent 821dea8008
commit 1a28e7acb2

View file

@ -1525,7 +1525,7 @@ private:
}
for (i = 0; i < n; ++i)
if ((config[i] = (config[i] + 1) % maxChans[i]) > 0)
if ((config[i] = maxChans[i] ? (config[i] + 1) % maxChans[i] : 0) > 0)
break;
}