diff options
author | Max Horn | 2007-05-01 17:17:00 +0000 |
---|---|---|
committer | Max Horn | 2007-05-01 17:17:00 +0000 |
commit | 38a5e37eaf24f7d2d7c0ce952aad5d52f503fae0 (patch) | |
tree | fe2e84d010acbac4d242653f8ec422d43f4e2c63 /engines | |
parent | 5d3bec7286d71ca334f156d77b91aabab0e31762 (diff) | |
download | scummvm-rg350-38a5e37eaf24f7d2d7c0ce952aad5d52f503fae0.tar.gz scummvm-rg350-38a5e37eaf24f7d2d7c0ce952aad5d52f503fae0.tar.bz2 scummvm-rg350-38a5e37eaf24f7d2d7c0ce952aad5d52f503fae0.zip |
Fix warning (unsigned ints are never negative)
svn-id: r26726
Diffstat (limited to 'engines')
-rw-r--r-- | engines/parallaction/sound.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/parallaction/sound.cpp b/engines/parallaction/sound.cpp index b3b0aa6839..8a00b2972f 100644 --- a/engines/parallaction/sound.cpp +++ b/engines/parallaction/sound.cpp @@ -308,7 +308,7 @@ AmigaSoundMan::~AmigaSoundMan() { } void AmigaSoundMan::playSfx(const char *filename, uint channel, bool looping, int volume, int rate) { - if (channel < 0 || channel >= NUM_AMIGA_CHANNELS) { + if (channel >= NUM_AMIGA_CHANNELS) { warning("unknown sfx channel"); return; } @@ -344,7 +344,7 @@ void AmigaSoundMan::playSfx(const char *filename, uint channel, bool looping, in } void AmigaSoundMan::stopSfx(uint channel) { - if (channel < 0 || channel >= NUM_AMIGA_CHANNELS) { + if (channel >= NUM_AMIGA_CHANNELS) { warning("unknown sfx channel"); return; } |