SCI: Silence some false positive warnings - CID 1003539, 1003540, 1003541, 1003542

This commit is contained in:
Filippos Karapetis 2013-05-01 01:49:51 +03:00
parent 5b25c40c40
commit b8eaefbf8a
3 changed files with 4 additions and 4 deletions

View File

@ -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 {

View File

@ -422,7 +422,7 @@ int MidiDriver_CMS::findVoiceBasic(int channel) {
}
if (voice == -1) {
if (oldestVoice != -1) {
if (oldestVoice >= 0) {
voiceOff(oldestVoice);
voice = oldestVoice;
} else {

View File

@ -250,7 +250,7 @@ int MidiPlayer_Fb01::findVoice(int channel) {
}
if (voice == -1) {
if (oldestVoice != -1) {
if (oldestVoice >= 0) {
voiceOff(oldestVoice);
voice = oldestVoice;
} else {