From a0a7116cf0c09f6daf826b9c2812e62a3e035052 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Sun, 21 Jun 2020 15:51:17 +0200 Subject: [PATCH] Add the modifiers size check, minor edit --- src/sfizz/Voice.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sfizz/Voice.h b/src/sfizz/Voice.h index 45802d2f..d2b25ad8 100644 --- a/src/sfizz/Voice.h +++ b/src/sfizz/Voice.h @@ -393,7 +393,7 @@ private: void forEachWithSmoother(sfz::Mod modId, F&& lambda) { size_t count = region->modifiers[modId].size(); - ASSERT(count == modifierSmoothers[modId].size()); + ASSERT(modifierSmoothers[modId].size() >= count); auto mod = region->modifiers[modId].begin(); auto smoother = modifierSmoothers[modId].begin(); for (size_t i = 0; i < count; ++i) {