From fc96bb43499ded10c7f91dcb81ceea412ce0ac3c Mon Sep 17 00:00:00 2001
From: Robbert van der Helm <mail@robbertvanderhelm.nl>
Date: Thu, 3 Feb 2022 17:03:33 +0100
Subject: [PATCH] Fix channel map debug assertion

---
 src/wrapper/vst3.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wrapper/vst3.rs b/src/wrapper/vst3.rs
index 747f2013..37dae008 100644
--- a/src/wrapper/vst3.rs
+++ b/src/wrapper/vst3.rs
@@ -898,7 +898,7 @@ impl<P: Plugin> IAudioProcessor for Wrapper<'_, P> {
         };
         let channel_map = channel_count_to_map(num_channels);
 
-        nih_debug_assert_eq!(config.num_input_channels, channel_map.count_ones());
+        nih_debug_assert_eq!(num_channels, channel_map.count_ones());
         *arr = channel_map;
 
         kResultOk