Skip to content

Commit

Permalink
[Fix] MED: The condition when to repeat octaves was inverted in r22476.
Browse files Browse the repository at this point in the history
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@22688 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
sagamusix committed Jan 1, 2025
1 parent 8b032de commit ae90f31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soundlib/Load_med.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ bool CSoundFile::ReadMED(FileReader &file, ModLoadingFlags loadFlags)
instr.nMidiProgram = sampleHeader.midiPreset;
}

if(instr.nMidiChannel != MidiNoChannel)
if(instr.nMidiChannel == MidiNoChannel)
{
int offset = NOTE_MIDDLEC + (hardwareMixSamples ? 24 : 36);
for(auto &note : instr.NoteMap)
Expand Down

0 comments on commit ae90f31

Please sign in to comment.