GUI: possibly fix crash on audio export

issue #2672
This commit is contained in:
tildearrow 2025-09-05 18:50:28 -05:00
parent 710545e706
commit 7709640aa0

View file

@ -2634,7 +2634,7 @@ void FurnaceGUI::exportAudio(String path, DivAudioExportModes mode) {
e->findSongLength(loopOrder,loopRow,audioExportOptions.fadeOut,songFadeoutSectionLength,songHasSongEndCommand,songOrdersLengths,songLength); // for progress estimation e->findSongLength(loopOrder,loopRow,audioExportOptions.fadeOut,songFadeoutSectionLength,songHasSongEndCommand,songOrdersLengths,songLength); // for progress estimation
songLoopedSectionLength=songLength; songLoopedSectionLength=songLength;
for (int i=0; i<loopOrder; i++) { for (int i=0; i<loopOrder && i<(int)songOrdersLengths.size(); i++) {
songLoopedSectionLength-=songOrdersLengths[i]; songLoopedSectionLength-=songOrdersLengths[i];
} }
songLoopedSectionLength-=loopRow; songLoopedSectionLength-=loopRow;