From 38bcf33a50a98c750f45f4610e31f5cd0d780c68 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Fri, 28 Jan 2022 14:52:04 +0100 Subject: [PATCH] Use the precalculated bypass parameter hash --- 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 a1b4a966..5f356505 100644 --- a/src/wrapper/vst3.rs +++ b/src/wrapper/vst3.rs @@ -306,7 +306,7 @@ impl IEditController for Wrapper

{ let info = &mut *info; if param_index == self.param_hashes.len() as i32 { - info.id = hash_param_id(BYPASS_PARAM_ID); + info.id = *BYPASS_PARAM_HASH; u16strlcpy(&mut info.title, "Bypass"); u16strlcpy(&mut info.short_title, "Bypass"); u16strlcpy(&mut info.units, "");