From e6bc3305209e2f88f10e2454382f0c211632263b Mon Sep 17 00:00:00 2001 From: Paul Fd Date: Fri, 10 Sep 2021 13:55:26 +0200 Subject: [PATCH] Use the `offed_` boolean for the check --- src/sfizz/Voice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sfizz/Voice.cpp b/src/sfizz/Voice.cpp index a8e0a102..f08def4e 100644 --- a/src/sfizz/Voice.cpp +++ b/src/sfizz/Voice.cpp @@ -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