From 21c4d09c06a76092befbd89e6ce1ba4cf7e18f94 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 21 Apr 2022 03:26:34 -0500 Subject: [PATCH] GUI: "none" instrument should not remove inscolumn --- src/gui/gui.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 8993a7d7..689e2638 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -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]; if (latchIns==-2) { 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()) { pat->data[cursor.y][2]=MIN(((int)e->song.ins.size())-1,latchIns); }