From 4446ffe06d9545ceb24de8595a2d117201107399 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 14 Jul 2024 03:59:08 -0500 Subject: [PATCH] XM import: lock the dead --- src/engine/fileOps/xm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/fileOps/xm.cpp b/src/engine/fileOps/xm.cpp index 19bdb52b9..cee72f003 100644 --- a/src/engine/fileOps/xm.cpp +++ b/src/engine/fileOps/xm.cpp @@ -88,7 +88,7 @@ void readEnvelope(DivInstrument* ins, int env, unsigned char flags, unsigned cha } if ((point+1)>=numPoints) { target->len=i-1; - if ((flags&4) && (!(flags&2))) { + if (((flags&4) && (!(flags&2))) || ((flags&6)==0)) { target->rel=i-2; } //target->val[i]=p0;