GUI: fix outofrange vol input if vol rng is <16

This commit is contained in:
tildearrow 2023-09-20 01:20:19 -05:00
parent 746744606f
commit 3fca80fe3b

View file

@ -1274,6 +1274,7 @@ void FurnaceGUI::valueInput(int num, bool direct, int target) {
} else {
if (e->getMaxVolumeChan(cursor.xCoarse)<16) {
curNibble=false;
if (pat->data[cursor.y][target]>e->getMaxVolumeChan(cursor.xCoarse)) pat->data[cursor.y][target]=e->getMaxVolumeChan(cursor.xCoarse);
editAdvance();
} else {
curNibble=!curNibble;