Skip to content

Commit

Permalink
[Fix] Write the correct amount of padding when some envelopes are lon…
Browse files Browse the repository at this point in the history
…ger than 25 points.

git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@22582 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
sagamusix committed Dec 19, 2024
1 parent 2700c71 commit 4da7712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soundlib/InstrumentExtensions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ struct PropertyWriterEnvelopeValues : PropertyWriterEnvelopeBase
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);
Expand Down

0 comments on commit 4da7712

Please sign in to comment.