summaryrefslogtreecommitdiff
path: root/ym2612.c
diff options
context:
space:
mode:
Diffstat (limited to 'ym2612.c')
-rw-r--r--ym2612.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ym2612.c b/ym2612.c
index 432e1f5..3c80f9d 100644
--- a/ym2612.c
+++ b/ym2612.c
@@ -565,7 +565,7 @@ void ym_data_write(ym2612_context * context, uint8_t value)
break;
case REG_S_LVL_R_RATE:
operator->rates[PHASE_RELEASE] = (value & 0xF) << 1 | 1;
- operator->sustain_level = value & 0xF0 << 4;
+ operator->sustain_level = (value & 0xF0) << 4;
break;
}
}