Skip to content

Commit b2e2e75

Browse files
committed
library: Fix bitmask
1 parent bef15fb commit b2e2e75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/NEGeneral.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ void NE_VBLFunc(void)
447447
if (NE_Effect == NE_NOISE || NE_Effect == NE_SINE)
448448
{
449449
if (!NE_effectpause)
450-
NE_lastvbladd = (NE_lastvbladd + 1) & NE_NOISEPAUSE_SIZE;
450+
NE_lastvbladd = (NE_lastvbladd + 1) & (NE_NOISEPAUSE_SIZE - 1);
451451
}
452452

453453
NE_Screen ^= 1;

0 commit comments

Comments
 (0)