GUI: this time for real fix the crash

issue #2570
This commit is contained in:
tildearrow 2025-06-17 19:04:36 -05:00
parent 5c2647f0ec
commit 3cbc69aa56

View file

@ -5934,7 +5934,7 @@ bool FurnaceGUI::loop() {
*curFileLambda=0; *curFileLambda=0;
e->getCurFileIndex(*curFileLambda); e->getCurFileIndex(*curFileLambda);
*curPosInRowsLambda=curRow; *curPosInRowsLambda=curRow;
for (int i=0; i<curOrder; i++) *curPosInRowsLambda+=songOrdersLengths[i]; for (int i=0; i<MIN(curOrder,(int)songOrdersLengths.size()); i++) *curPosInRowsLambda+=songOrdersLengths[i];
if (!songHasSongEndCommand) { if (!songHasSongEndCommand) {
e->getLoopsLeft(*loopsLeftLambda); e->getLoopsLeft(*loopsLeftLambda);
e->getTotalLoops(*totalLoopsLambda); e->getTotalLoops(*totalLoopsLambda);