Fix to instrument load/save
svn-id: r6051
This commit is contained in:
parent
e4b1a7e709
commit
01ffb7bec2
2 changed files with 13 additions and 8 deletions
|
@ -286,8 +286,8 @@ void Instrument::saveOrLoad (Serializer *s)
|
|||
_instrument->saveOrLoad (s);
|
||||
} else {
|
||||
clear();
|
||||
byte type = s->loadByte();
|
||||
switch (type) {
|
||||
_type = s->loadByte();
|
||||
switch (_type) {
|
||||
case itNone:
|
||||
break;
|
||||
case itProgram:
|
||||
|
@ -300,7 +300,8 @@ void Instrument::saveOrLoad (Serializer *s)
|
|||
_instrument = new Instrument_Roland (s);
|
||||
break;
|
||||
default:
|
||||
warning ("No known instrument classification #%d", (int) type);
|
||||
warning ("No known instrument classification #%d", (int) _type);
|
||||
_type = itNone;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue