Add the modifiers size check, minor edit

This commit is contained in:
Jean Pierre Cimalando 2020-06-21 15:51:17 +02:00
parent d818b0d7c8
commit a0a7116cf0

View file

@ -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) {