diff options
Diffstat (limited to 'scumm/instrument.cpp')
-rw-r--r-- | scumm/instrument.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/instrument.cpp b/scumm/instrument.cpp index bfe8d9c180..bd7eec8a49 100644 --- a/scumm/instrument.cpp +++ b/scumm/instrument.cpp @@ -248,13 +248,13 @@ void Instrument::clear() _type = itNone; } -void Instrument::program (byte program, bool mt32) +void Instrument::program (byte prog, bool mt32) { clear(); - if (program > 127) + if (prog > 127) return; _type = itProgram; - _instrument = new Instrument_Program (program, mt32); + _instrument = new Instrument_Program (prog, mt32); } void Instrument::adlib (byte *instrument) |