GUI: "none" instrument should not remove inscolumn
This commit is contained in:
parent
bfdfac004f
commit
21c4d09c06
|
@ -916,7 +916,9 @@ void FurnaceGUI::noteInput(int num, int key, int vol) {
|
||||||
pat->data[cursor.y][1]=(unsigned char)pat->data[cursor.y][1];
|
pat->data[cursor.y][1]=(unsigned char)pat->data[cursor.y][1];
|
||||||
if (latchIns==-2) {
|
if (latchIns==-2) {
|
||||||
if (curIns>=(int)e->song.ins.size()) curIns=-1;
|
if (curIns>=(int)e->song.ins.size()) curIns=-1;
|
||||||
pat->data[cursor.y][2]=curIns;
|
if (curIns>=0) {
|
||||||
|
pat->data[cursor.y][2]=curIns;
|
||||||
|
}
|
||||||
} else if (latchIns!=-1 && !e->song.ins.empty()) {
|
} else if (latchIns!=-1 && !e->song.ins.empty()) {
|
||||||
pat->data[cursor.y][2]=MIN(((int)e->song.ins.size())-1,latchIns);
|
pat->data[cursor.y][2]=MIN(((int)e->song.ins.size())-1,latchIns);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue