This commit is contained in:
Kurausukun 2021-08-08 20:49:29 -04:00
parent 0bceaab046
commit ddb3911d0d

View file

@ -1199,7 +1199,7 @@ void CgbSound(void)
else
{
unsigned int envMask = 0xF;
*nrx2ptr = (envelopeStepTimeAndDir & newMask) + (channels->envelopeVolume << 4);
*nrx2ptr = (envelopeStepTimeAndDir & envMask) + (channels->envelopeVolume << 4);
*nrx4ptr = channels->n4 | 0x80;
if (ch == 1 && !(*nrx0ptr & 0x08))
*nrx4ptr = channels->n4 | 0x80;