mirror of
https://github.com/OldUnreal/libxmp.git
synced 2026-04-02 21:37:43 -07:00
Update stm_load.c
Samples corrupted in fracture.stm and other STM modules #92
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user