diff options
author | Torbjörn Andersson | 2009-11-12 18:27:16 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2009-11-12 18:27:16 +0000 |
commit | b3f97d9b73d4948f68882ab304bcc7cc78bd1b32 (patch) | |
tree | 55a22dd9319ee847d60db17b45aadb6901ae3eac | |
parent | b85c254c5f06dd4cbcc2f2d17cc28f0dc59bc579 (diff) | |
download | scummvm-rg350-b3f97d9b73d4948f68882ab304bcc7cc78bd1b32.tar.gz scummvm-rg350-b3f97d9b73d4948f68882ab304bcc7cc78bd1b32.tar.bz2 scummvm-rg350-b3f97d9b73d4948f68882ab304bcc7cc78bd1b32.zip |
Silenced GCC warning. Since command is unsigned, it's always >= 0.
svn-id: r45864
-rw-r--r-- | engines/sci/sfx/soundcmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/sfx/soundcmd.cpp b/engines/sci/sfx/soundcmd.cpp index c984909497..1af9da57ba 100644 --- a/engines/sci/sfx/soundcmd.cpp +++ b/engines/sci/sfx/soundcmd.cpp @@ -206,7 +206,7 @@ reg_t SoundCommandParser::parseCommand(int argc, reg_t *argv, reg_t acc) { _param = argv[4].toUint16(); } - if (command >= 0 && command < _soundCommands.size()) { + if (command < _soundCommands.size()) { debugC(2, kDebugLevelSound, "%s", _soundCommands[command]->desc); (this->*(_soundCommands[command]->sndCmd))(obj, handle, value); } else { |