diff --git a/src/engine/platform/c140.cpp b/src/engine/platform/c140.cpp index b4cc9171a..1284a78bf 100644 --- a/src/engine/platform/c140.cpp +++ b/src/engine/platform/c140.cpp @@ -237,17 +237,17 @@ void DivPlatformC140::tick(bool sysTick) { if (is219) { if (groupBank[i>>2]!=bank) { groupBank[i>>2]=bank; - } - rWrite(0x1f1+(((3+(i>>2))&3)<<1),groupBank[i>>2]); - // shut everyone else up - for (int j=0; j<4; j++) { - int ch=(i&(~3))|j; - if (chan[ch].active && (i&3)!=j) { - chan[ch].sample=-1; - chan[ch].active=false; - chan[ch].keyOff=true; - chan[ch].macroInit(NULL); - rWrite(0x05+(ch<<4),ctrl); + rWrite(0x1f1+(((3+(i>>2))&3)<<1),groupBank[i>>2]); + // shut everyone else up + for (int j=0; j<4; j++) { + int ch=(i&(~3))|j; + if (chan[ch].active && (i&3)!=j) { + chan[ch].sample=-1; + chan[ch].active=false; + chan[ch].keyOff=true; + chan[ch].macroInit(NULL); + rWrite(0x05+(ch<<4),ctrl); + } } } } else {