ft2-clone

Fasttracker 2 clone
Log | Files | Refs | README | LICENSE

commit 89ea944ad62140886512ec2cb74ab9b0075f920d
parent b39f6a6e606f2954d0b90ed9839c33da92982607
Author: Olav Sørensen <olav.sorensen@live.no>
Date:   Sun, 27 Feb 2022 12:00:43 +0100

[.MOD] FIx possible sample loop corruption, f.ex. FARLAND.MOD (issue #33)

Diffstat:
Msrc/modloaders/ft2_load_mod.c | 3---
1 file changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/modloaders/ft2_load_mod.c b/src/modloaders/ft2_load_mod.c @@ -314,9 +314,6 @@ bool loadMOD(FILE *f, uint32_t filesize) s->loopStart = 2 * SWAP16(hdr.smp[a].loopStart); s->loopLength = 2 * SWAP16(hdr.smp[a].loopLength); - if (s->loopLength < 2) - s->loopLength = 2; - // fix for poorly converted STK (< v2.5) -> PT/NT modules if (s->loopLength > 2 && s->loopStart+s->loopLength > s->length) {