From: <sv...@op...> - 2024-11-01 17:32:26
|
Author: sagamusix Date: Fri Nov 1 18:32:05 2024 New Revision: 22050 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22050 Log: [Fix] Previous commit contained accidentally commented-out code, not actually completely fixing toki5.puma as a result. Modified: trunk/OpenMPT/soundlib/InstrumentSynth.cpp Modified: trunk/OpenMPT/soundlib/InstrumentSynth.cpp ============================================================================== --- trunk/OpenMPT/soundlib/InstrumentSynth.cpp Fri Nov 1 18:19:01 2024 (r22049) +++ trunk/OpenMPT/soundlib/InstrumentSynth.cpp Fri Nov 1 18:32:05 2024 (r22050) @@ -157,7 +157,7 @@ { if(smp < 1 || smp > sndFile.GetNumSamples()) return; - const bool channelIsActive = chn.pCurrentSample;// && chn.nLength; + const bool channelIsActive = chn.pCurrentSample && chn.nLength; if(sndFile.m_playBehaviour[kMODSampleSwap] && smp <= uint8_max && swapAtEnd && channelIsActive) { chn.nNewIns = static_cast<uint8>(smp); |