diff --git a/src/sound/sound.c b/src/sound/sound.c index 3394f9c1..63acb913 100644 --- a/src/sound/sound.c +++ b/src/sound/sound.c @@ -73,7 +73,7 @@ device_t *sound_card_getdevice(int card) { } int sound_card_has_config(int card) { - if (sound_cards[card] != NULL || !sound_cards[card]->device) + if (sound_cards[card] == NULL || sound_cards[card]->device == NULL) return 0; return sound_cards[card]->device->config ? 1 : 0; }