diff options
Diffstat (limited to 'scumm/instrument.cpp')
-rw-r--r-- | scumm/instrument.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scumm/instrument.cpp b/scumm/instrument.cpp index e8201ab8d7..c2ebaffb1f 100644 --- a/scumm/instrument.cpp +++ b/scumm/instrument.cpp @@ -330,8 +330,13 @@ Instrument_Program::Instrument_Program (Serializer *s) void Instrument_Program::saveOrLoad (Serializer *s) { - _program = s->loadByte(); - _mt32 = (s->loadByte() > 0); + if (s->isSaving()) { + s->saveByte (_program); + s->saveByte (_mt32 ? 1 : 0); + } else { + _program = s->loadByte(); + _mt32 = (s->loadByte() > 0); + } } void Instrument_Program::send (MidiChannel *mc) |