From 71c6e06b69b561fad76e096d424622bab5855ac1 Mon Sep 17 00:00:00 2001 From: Johannes Schultz Date: Sun, 24 Nov 2024 23:02:02 +0000 Subject: [PATCH] [Fix] Missing file in previous commit. git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@22301 56274372-70c3-4bfc-bfc3-4c3a0b034d27 --- mptrack/PatternFindReplace.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mptrack/PatternFindReplace.cpp b/mptrack/PatternFindReplace.cpp index b916e7f94a5..a2b753c20cc 100644 --- a/mptrack/PatternFindReplace.cpp +++ b/mptrack/PatternFindReplace.cpp @@ -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; @@ -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;