Corrected an issue in the registerCC function of the voices that did not check the attached region for nullptr

This commit is contained in:
paulfd 2019-09-08 18:18:43 +02:00
parent ee6f714b3e
commit 37f55b8ca9

View file

@ -145,6 +145,9 @@ void sfz::Voice::registerNoteOff(int delay, int channel, int noteNumber, uint8_t
void sfz::Voice::registerCC(int delay, int channel [[maybe_unused]], int ccNumber, uint8_t ccValue) noexcept
{
if (region == nullptr)
return;
if (ccNumber == 64 && noteIsOff && ccValue < 63)
release(delay);