Actually fix

This commit is contained in:
cam900 2022-12-15 17:00:46 +09:00
parent 5de95e6565
commit 7a91996e3a
1 changed files with 1 additions and 1 deletions

View File

@ -534,7 +534,7 @@ void DivPlatformK007232::renderSamples(int sysID) {
memset(&sampleMem[memPos],0xc0,1);
memPos+=1;
}
if ((memPos+actualLength)>=(getSampleMemCapacity()-1)) {
if ((memPos+MAX(actualLength,0))>=(getSampleMemCapacity()-1)) {
logW("out of K007232 PCM memory for sample %d!",i);
break;
} else {