Fix match in osVoiceControlGain

This commit is contained in:
engineer124
2021-11-17 16:21:46 +11:00
parent b7160a2efc
commit cf7009b45c
+3 -8
View File
@@ -18,14 +18,9 @@ s32 osVoiceControlGain(OSVoiceHandle* hd, s32 analog, s32 digital) {
return errorCode;
}
if (!((digital < 8) && (digital >= 0))) {
goto dummy;
}
phi_a2 = D_80098180[digital] + 2;
if (0) {
dummy:
if (((digital < 8) && (digital >= 0))) {
phi_a2 = D_80098180[digital] + 2;
} else {
return CONT_ERR_INVALID;
}