Fix some looping issues [Legend of Mana (PC)]

This commit is contained in:
bnnm 2021-12-06 23:43:27 +01:00 committed by GitHub
parent b0faaff061
commit ae79bca161
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,7 +155,7 @@ VGMSTREAM* init_vgmstream_psb(STREAMFILE* sf) {
default: goto fail;
}
if (psb.duration_test && psb.loop_start + psb.loop_end < vgmstream->num_samples)
if (psb.duration_test && psb.loop_start + psb.loop_end <= vgmstream->num_samples)
vgmstream->loop_end_sample += psb.loop_start;
break;