Use the offed_ boolean for the check

This commit is contained in:
Paul Fd 2021-09-10 13:55:26 +02:00
parent 3aae318e82
commit e6bc330520

View file

@ -1666,7 +1666,7 @@ bool Voice::checkOffGroup(const Region* other, int delay, int noteNumber) noexce
if (region == nullptr || other == nullptr)
return false;
if (impl.released() && region->offMode == OffMode::normal)
if (impl.offed_)
return false;
if ((impl.triggerEvent_.type == TriggerEventType::NoteOn