From 5ead988afb6965a23bbe0958a25bf40e92a42d7c Mon Sep 17 00:00:00 2001 From: Stefano D'Angelo Date: Wed, 21 Feb 2024 17:22:17 +0100 Subject: [PATCH] fix two stupid bugs, same stuff --- templates/vst3/src/vst3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/vst3/src/vst3.c b/templates/vst3/src/vst3.c index 6f9ef8d..9d7ccb0 100644 --- a/templates/vst3/src/vst3.c +++ b/templates/vst3/src/vst3.c @@ -1016,9 +1016,9 @@ static Steinberg_Vst_ParamValue controllerGetParamNormalized(void* thisInterface controller *c = (controller *)((char *)thisInterface - offsetof(controller, vtblIEditController)); int pi = parameterGetIndexById(id); # if DATA_PRODUCT_BUSES_MIDI_INPUT_N > 0 - return pi >= DATA_PRODUCT_PARAMETERS_N ? c->parameters[pi] : parameterUnmap(pi, c->parameters[id]); + return pi >= DATA_PRODUCT_PARAMETERS_N ? c->parameters[pi] : parameterUnmap(pi, c->parameters[pi]); # else - return parameterUnmap(pi, c->parameters[id]); + return parameterUnmap(pi, c->parameters[pi]); # endif #else (void)thisInterface;