Skip to content

Commit

Permalink
[Fix] PSM: Avoid double assignment to just-declared variable.
Browse files Browse the repository at this point in the history
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@20536 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
sagamusix committed Apr 8, 2024
1 parent c380bda commit b8fa6d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soundlib/Load_psm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ bool CSoundFile::ReadPSM(FileReader &file, ModLoadingFlags loadFlags)
ModSequence &order = Order(static_cast<SEQUENCEINDEX>(i));
if(order.IsValidPat(0))
{
PATTERNINDEX startPattern = startPattern = order.EnsureUnique(0);
PATTERNINDEX startPattern = order.EnsureUnique(0);
// Subsongs with different panning setup -> write to pattern (MUSIC_C.PSM)
// Don't write channel volume for now, as there is no real-world module which needs it.
if(subsongPanningDiffers)
Expand Down

0 comments on commit b8fa6d9

Please sign in to comment.