ref: 89ea944ad62140886512ec2cb74ab9b0075f920d
parent: b39f6a6e606f2954d0b90ed9839c33da92982607
author: Olav Sørensen <olav.sorensen@live.no>
date: Sun Feb 27 07:01:10 EST 2022
[.MOD] FIx possible sample loop corruption, f.ex. FARLAND.MOD (issue #33)
--- a/src/modloaders/ft2_load_mod.c
+++ b/src/modloaders/ft2_load_mod.c
@@ -314,9 +314,6 @@
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)
{