Skip to content

Commit 6933629

Browse files
committed
[Mod] Apply more sensible upper bound for instrument fadeout property when sanitizing.
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@24782 56274372-70c3-4bfc-bfc3-4c3a0b034d27
1 parent cb6e850 commit 6933629

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soundlib/ModInstrument.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ void ModInstrument::GetSamples(std::vector<bool> &referencedSamples) const
265265

266266
void ModInstrument::Sanitize(MODTYPE modType)
267267
{
268-
LimitMax(nFadeOut, uint16_max);
268+
LimitMax(nFadeOut, uint16(32768));
269269
LimitMax(nGlobalVol, uint16(64));
270270
LimitMax(nPan, uint16(256));
271271

0 commit comments

Comments
 (0)