fix two stupid bugs, same stuff

This commit is contained in:
Stefano D'Angelo 2024-02-21 17:22:17 +01:00
parent 7f006e2242
commit 5ead988afb

View File

@ -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;