GUI: fix outofrange vol input if vol rng is <16
This commit is contained in:
parent
746744606f
commit
3fca80fe3b
|
@ -1274,6 +1274,7 @@ void FurnaceGUI::valueInput(int num, bool direct, int target) {
|
||||||
} else {
|
} else {
|
||||||
if (e->getMaxVolumeChan(cursor.xCoarse)<16) {
|
if (e->getMaxVolumeChan(cursor.xCoarse)<16) {
|
||||||
curNibble=false;
|
curNibble=false;
|
||||||
|
if (pat->data[cursor.y][target]>e->getMaxVolumeChan(cursor.xCoarse)) pat->data[cursor.y][target]=e->getMaxVolumeChan(cursor.xCoarse);
|
||||||
editAdvance();
|
editAdvance();
|
||||||
} else {
|
} else {
|
||||||
curNibble=!curNibble;
|
curNibble=!curNibble;
|
||||||
|
|
Loading…
Reference in a new issue