summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ym2612.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ym2612.c b/ym2612.c
index dc9c095..899230c 100644
--- a/ym2612.c
+++ b/ym2612.c
@@ -293,7 +293,7 @@ void ym_run(ym2612_context * context, uint32_t to_cycle)
}
break;
case 2://Operator 2
- if (chan->algorithm != 1 && chan->algorithm != 2 || chan->algorithm != 7) {
+ if (chan->algorithm != 1 && chan->algorithm != 2 && chan->algorithm != 7) {
//modulate by Operator 1
mod = context->operators[op-2].output >> YM_MOD_SHIFT;
}