array bounds fix

This commit is contained in:
tildearrow 2024-05-01 14:22:57 -05:00
parent 574d2b2bea
commit f3d129e99f

View file

@ -427,7 +427,9 @@ void TFMParsePattern(struct TFMParsePatternInfo info) {
}
for (int i=0; i<speed.interleaveFactor; i++) {
groove.val[i]=speed.speedEven;
groove.val[i+speed.interleaveFactor]=speed.speedOdd;
if (i+speed.interleaveFactor<16) {
groove.val[i+speed.interleaveFactor]=speed.speedOdd;
}
}
groove.len=speed.interleaveFactor*2;