From 9f26257364cff6c4c70de76ecc3b38ed106065eb Mon Sep 17 00:00:00 2001 From: techmetx11 Date: Wed, 10 Apr 2024 16:39:03 +0000 Subject: [PATCH] Fixed bug in RLE decompressor, added order list --- src/engine/fileOps/tfm.cpp | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/src/engine/fileOps/tfm.cpp b/src/engine/fileOps/tfm.cpp index fcc5b2bc3..7c0e949ef 100644 --- a/src/engine/fileOps/tfm.cpp +++ b/src/engine/fileOps/tfm.cpp @@ -45,7 +45,9 @@ class TFMRLEReader { do { rleTag=readC(); tagLenLeft|=(rleTag&0x7F)<ordersLen;i++) { + for (int j=0; j<6; j++) { + ds.subsong[0]->orders.ord[j][i]=orderList[i]; + } + } + ds.notes=notes; BUSY_BEGIN_SOFT; saveLock.lock();