Fix offset

This commit is contained in:
cam900 2023-06-26 20:00:29 +09:00
parent 4efd3591d2
commit 8c4477c6dd
1 changed files with 1 additions and 1 deletions

View File

@ -471,7 +471,7 @@ void DivPlatformK053260::renderSamples(int sysID) {
}
int length=MIN(65535,s->getEndPosition(DIV_SAMPLE_DEPTH_8BIT));
int actualLength=MIN((int)(getSampleMemCapacity()-memPos),length);
int actualLength=MIN((int)(getSampleMemCapacity()-memPos-1),length);
if (actualLength>0) {
sampleOffK053260[i]=memPos-1;
for (int j=0; j<actualLength; j++) {