GUI: fix crash when loading instrument

fixes #431
This commit is contained in:
tildearrow 2022-05-05 17:45:18 -05:00
parent 9a2938ff3e
commit 6672a886a3
1 changed files with 1 additions and 1 deletions

View File

@ -3133,7 +3133,7 @@ bool FurnaceGUI::loop() {
showWarning(e->getWarnings(),GUI_WARN_GENERIC);
}
if (curIns>=0 && curIns<(int)e->song.ins.size()) {
*e->song.ins[curIns]=*instruments[curIns];
*e->song.ins[curIns]=*instruments[0];
} else {
showError("...but you haven't selected an instrument!");
}