From 6f919acccc29db25b5ebc8d1b998277c35e459c3 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 14 Jul 2024 01:13:38 -0500 Subject: [PATCH] XM import: only take 9xx effect if has note --- src/engine/fileOps/xm.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/fileOps/xm.cpp b/src/engine/fileOps/xm.cpp index b44369007..88ccf4f4d 100644 --- a/src/engine/fileOps/xm.cpp +++ b/src/engine/fileOps/xm.cpp @@ -1006,8 +1006,10 @@ bool DivEngine::loadXM(unsigned char* file, size_t len) { writePanning=false; break; case 9: // offset - p->data[j][effectCol[k]++]=0x91; - p->data[j][effectCol[k]++]=effectVal; + if (hasNote) { + p->data[j][effectCol[k]++]=0x91; + p->data[j][effectCol[k]++]=effectVal; + } break; case 0xa: // vol slide if (effectVal!=0) {