Update stm_load.c

Samples corrupted in fracture.stm and other STM modules  #92
This commit is contained in:
viiri
2017-02-13 17:43:17 +10:00
committed by Ozkan Sezer
parent 29b5d06f60
commit ca11190066

View File

@@ -270,7 +270,8 @@ static int stm_load(struct module_data *m, HIO_HANDLE * f, const int start)
D_(D_INFO "Stored samples: %d", mod->smp);
for (i = 0; i < mod->ins; i++) {
if (mod->xxs[i].len > 1) {
if (sfh.ins[i].volume && sfh.ins[i].length) {
hio_seek(f, start + sfh.ins[i].rsvd1 << 4, SEEK_SET);
if (libxmp_load_sample(m, f, 0, &mod->xxs[i], NULL) < 0)
return -1;
} else {