GUI: prevent one possible bug when moving cursor

This commit is contained in:
tildearrow 2022-03-29 00:37:45 -05:00
parent 964039c8db
commit 92c1add075
1 changed files with 1 additions and 0 deletions

View File

@ -263,6 +263,7 @@ void FurnaceGUI::moveCursorBottom(bool select) {
if (cursor.y==e->song.patLen-1) {
DETERMINE_LAST;
cursor.xCoarse=lastChannel-1;
if (cursor.xCoarse<0) cursor.xCoarse=0;
cursor.xFine=2+e->song.pat[cursor.xCoarse].effectRows*2;
demandScrollX=true;
} else {