From: <sv...@op...> - 2024-12-19 20:16:23
|
Author: sagamusix Date: Thu Dec 19 21:16:11 2024 New Revision: 22582 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22582 Log: [Fix] Write the correct amount of padding when some envelopes are longer than 25 points. Modified: trunk/OpenMPT/soundlib/InstrumentExtensions.cpp Modified: trunk/OpenMPT/soundlib/InstrumentExtensions.cpp ============================================================================== --- trunk/OpenMPT/soundlib/InstrumentExtensions.cpp Thu Dec 19 21:11:37 2024 (r22581) +++ trunk/OpenMPT/soundlib/InstrumentExtensions.cpp Thu Dec 19 21:16:11 2024 (r22582) @@ -245,7 +245,7 @@ mpt::IO::WriteIntLE(file, static_cast<uint8>(env[i].value)); } // Not every instrument's envelope will be the same length. fill up with zeros. - uint16le padding{}; + uint8 padding{}; for(uint32 i = maxNodes; i < nodes; ++i) { mpt::IO::Write(file, padding); |