From: <sv...@op...> - 2024-10-31 20:20:10
|
Author: sagamusix Date: Thu Oct 31 21:19:56 2024 New Revision: 22041 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22041 Log: [Fix] Fix operator precedence. Modified: trunk/OpenMPT/soundlib/Load_fc.cpp Modified: trunk/OpenMPT/soundlib/Load_fc.cpp ============================================================================== --- trunk/OpenMPT/soundlib/Load_fc.cpp Thu Oct 31 21:15:14 2024 (r22040) +++ trunk/OpenMPT/soundlib/Load_fc.cpp Thu Oct 31 21:19:56 2024 (r22041) @@ -364,7 +364,7 @@ if(p[0] > 0 && p[0] != 0x49) { - m->note = NOTE_MIN + (chnInfo.noteTranspose + p[0]) & 0x7F; + m->note = NOTE_MIN + ((chnInfo.noteTranspose + p[0]) & 0x7F); if(int instr = (p[1] & 0x3F) + chnInfo.instrTranspose + 1; instr >= 1 && instr <= m_nInstruments) m->instr = static_cast<ModCommand::INSTR>(instr); else |