Fix instrument allocation
This commit is contained in:
parent
7a2c86e9d7
commit
458f8c5881
|
@ -48,7 +48,9 @@ enum DivInstrumentType {
|
|||
DIV_INS_BEEPER=21,
|
||||
DIV_INS_SWAN=22,
|
||||
DIV_INS_MIKEY=23,
|
||||
DIV_INS_X1_010=24,
|
||||
DIV_INS_VERA=24,
|
||||
DIV_INS_X1_010=25,
|
||||
DIV_INS_MAX,
|
||||
};
|
||||
|
||||
// FM operator structure:
|
||||
|
|
|
@ -788,9 +788,9 @@ void FurnaceGUI::drawInsEdit() {
|
|||
} else {
|
||||
DivInstrument* ins=e->song.ins[curIns];
|
||||
ImGui::InputText("Name",&ins->name);
|
||||
if (ins->type<0 || ins->type>24) ins->type=DIV_INS_FM;
|
||||
if (ins->type<0 || ins->type>=DIV_INS_MAX) ins->type=DIV_INS_FM;
|
||||
int insType=ins->type;
|
||||
if (ImGui::Combo("Type",&insType,insTypes,25,25)) {
|
||||
if (ImGui::Combo("Type",&insType,insTypes,DIV_INS_MAX,DIV_INS_MAX)) {
|
||||
ins->type=(DivInstrumentType)insType;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue