diff options
author | Filippos Karapetis | 2013-05-01 01:49:51 +0300 |
---|---|---|
committer | Filippos Karapetis | 2013-05-01 01:51:12 +0300 |
commit | b8eaefbf8a7d5e428c2eb9761d176e8f03e39994 (patch) | |
tree | c234ba7e6da8801d23dff0e1434990c0c91ff806 /engines/sci/sound/drivers/adlib.cpp | |
parent | 5b25c40c4041538f7e050211039b81af8cf77eba (diff) | |
download | scummvm-rg350-b8eaefbf8a7d5e428c2eb9761d176e8f03e39994.tar.gz scummvm-rg350-b8eaefbf8a7d5e428c2eb9761d176e8f03e39994.tar.bz2 scummvm-rg350-b8eaefbf8a7d5e428c2eb9761d176e8f03e39994.zip |
SCI: Silence some false positive warnings - CID 1003539, 1003540, 1003541, 1003542
Diffstat (limited to 'engines/sci/sound/drivers/adlib.cpp')
-rw-r--r-- | engines/sci/sound/drivers/adlib.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/sound/drivers/adlib.cpp b/engines/sci/sound/drivers/adlib.cpp index 191e13db0a..3229fd7071 100644 --- a/engines/sci/sound/drivers/adlib.cpp +++ b/engines/sci/sound/drivers/adlib.cpp @@ -512,7 +512,7 @@ int MidiDriver_AdLib::findVoiceBasic(int channel) { } if (voice == -1) { - if (oldestVoice != -1) { + if (oldestVoice >= 0) { voiceOff(oldestVoice); voice = oldestVoice; } else { @@ -550,7 +550,7 @@ int MidiDriver_AdLib::findVoice(int channel) { } if (voice == -1) { - if (oldestVoice != -1) { + if (oldestVoice >= 0) { voiceOff(oldestVoice); voice = oldestVoice; } else { |