diff options
author | Max Horn | 2002-12-18 23:19:37 +0000 |
---|---|---|
committer | Max Horn | 2002-12-18 23:19:37 +0000 |
commit | 2b3415212fa64a06d56323226de78d15dedb1b48 (patch) | |
tree | b2af0eb6578fb32f650d2afee65d54680d5bb454 /scumm | |
parent | b708c7dd646b324c913adf808326ca438c01de00 (diff) | |
download | scummvm-rg350-2b3415212fa64a06d56323226de78d15dedb1b48.tar.gz scummvm-rg350-2b3415212fa64a06d56323226de78d15dedb1b48.tar.bz2 scummvm-rg350-2b3415212fa64a06d56323226de78d15dedb1b48.zip |
fixed warning
svn-id: r6022
Diffstat (limited to 'scumm')
-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) |