diff --git a/Source/PatternCompiler.cpp b/Source/PatternCompiler.cpp index 0128ea89..a436a3da 100644 --- a/Source/PatternCompiler.cpp +++ b/Source/PatternCompiler.cpp @@ -302,6 +302,8 @@ void CPatternCompiler::CompileData(int Track, int Pattern, int Channel) } else { DPCMInst = ChanNote.Instrument; + Volume = MAX_VOLUME; + // double check if DPCMInst is a valid instrument index if (!(DPCMInst >= 0 && DPCMInst < MAX_INSTRUMENTS)) { #ifdef _DEBUG