From 2b3415212fa64a06d56323226de78d15dedb1b48 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 18 Dec 2002 23:19:37 +0000 Subject: fixed warning svn-id: r6022 --- scumm/instrument.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scumm/instrument.cpp') 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) -- cgit v1.2.3