Skip to content

Commit

Permalink
[Fix] Missing file in previous commit.
Browse files Browse the repository at this point in the history
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@22301 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
sagamusix committed Nov 24, 2024
1 parent 57caf8d commit 71c6e06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mptrack/PatternFindReplace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ void CViewPattern::OnEditFindNext()
if(FindReplace::instance.replaceVolumeAction == FindReplace::ReplaceRelative || FindReplace::instance.replaceVolumeAction == FindReplace::ReplaceMultiply)
{
if(!hadVolume && m->volcmd == VOLCMD_VOLUME)
vol = GetDefaultVolume(*m, lastInstr[chn]);
vol = GetDefaultVolume(*m, lastInstr[chn]).value_or(64);

if(FindReplace::instance.replaceVolumeAction == FindReplace::ReplaceRelative)
vol += volReplace;
Expand Down Expand Up @@ -394,7 +394,7 @@ void CViewPattern::OnEditFindNext()
param &= 0x0F;

if(!hadVolume && m->command == CMD_VOLUME)
param = GetDefaultVolume(*m, lastInstr[chn]);
param = GetDefaultVolume(*m, lastInstr[chn]).value_or(64);

if(FindReplace::instance.replaceParamAction == FindReplace::ReplaceRelative)
param += paramReplace;
Expand Down

0 comments on commit 71c6e06

Please sign in to comment.