diff options
Diffstat (limited to 'scumm/instrument.cpp')
| -rw-r--r-- | scumm/instrument.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scumm/instrument.cpp b/scumm/instrument.cpp index c2ebaffb1f..897c6d4086 100644 --- a/scumm/instrument.cpp +++ b/scumm/instrument.cpp @@ -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; } } } |
