mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Fix crash in build_synthetic_wave()
This commit is contained in:
parent
66a1dd36ae
commit
4fcc1ac26c
1 changed files with 1 additions and 0 deletions
|
|
@ -865,6 +865,7 @@ void build_synthetic_wave(struct Note *note, struct SequenceChannelLayer *seqLay
|
|||
note->instOrWave = (u8) seqLayer->seqChannel->instOrWave;
|
||||
for (i = -1, pos = 0; pos < 0x40; pos += stepSize) {
|
||||
i++;
|
||||
if (i >= 0x40) { break; }
|
||||
note->synthesisBuffers->samples[i] = gWaveSamples[seqLayer->seqChannel->instOrWave - 0x80][pos];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue