From a4b9442cc817ab593b5b189277a90799aeaf22a3 Mon Sep 17 00:00:00 2001 From: M374LX Date: Mon, 29 Sep 2025 19:15:19 -0300 Subject: [PATCH] Small consistency fix --- src/engine/fileOpsIns.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/fileOpsIns.cpp b/src/engine/fileOpsIns.cpp index eeb795a13..ca6de0f40 100644 --- a/src/engine/fileOpsIns.cpp +++ b/src/engine/fileOpsIns.cpp @@ -509,13 +509,13 @@ void DivEngine::loadEIF(SafeReader& reader, std::vector& ret, St bytes[i] = reader.readC(); } - ins->fm.alg=bytes[0]&0x7; - ins->fm.fb=(bytes[0]>>3)&0x7; + ins->fm.alg=bytes[0]&0x07; + ins->fm.fb=(bytes[0]>>3)&0x07; for (int i=0; i<4; i++) { DivInstrumentFM::Operator& op=ins->fm.op[i]; - op.mult=bytes[1+i]&0xF; + op.mult=bytes[1+i]&0x0F; op.dt=(bytes[1+i]>>4)&0x07; op.tl=bytes[5+i]&0x7F; op.rs=(bytes[9+i]>>6)&0x03;