mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-18 07:39:08 +00:00
SCI: Silence some false positive warnings - CID 1003539, 1003540, 1003541, 1003542
This commit is contained in:
parent
5b25c40c40
commit
b8eaefbf8a
@ -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 {
|
||||
|
@ -422,7 +422,7 @@ int MidiDriver_CMS::findVoiceBasic(int channel) {
|
||||
}
|
||||
|
||||
if (voice == -1) {
|
||||
if (oldestVoice != -1) {
|
||||
if (oldestVoice >= 0) {
|
||||
voiceOff(oldestVoice);
|
||||
voice = oldestVoice;
|
||||
} else {
|
||||
|
@ -250,7 +250,7 @@ int MidiPlayer_Fb01::findVoice(int channel) {
|
||||
}
|
||||
|
||||
if (voice == -1) {
|
||||
if (oldestVoice != -1) {
|
||||
if (oldestVoice >= 0) {
|
||||
voiceOff(oldestVoice);
|
||||
voice = oldestVoice;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user