diff --git a/src/engine/platform/x1_010.cpp b/src/engine/platform/x1_010.cpp index 47c8a10af..cec8659b4 100644 --- a/src/engine/platform/x1_010.cpp +++ b/src/engine/platform/x1_010.cpp @@ -339,11 +339,7 @@ void DivPlatformX1_010::updateEnvelope(int ch) { } chWrite(ch,5,0x10|(ch&0xf)); } else { - if (isMuted[ch]) { - chWrite(ch,1,0); - } else { - chWrite(ch,1,(chan[ch].lvol<<4)|chan[ch].rvol); - } + chWrite(ch,1,isMuted[ch]?0:((chan[ch].lvol<<4)|chan[ch].rvol)); } }