From e167988a92be0f38b9fb42ecbfa3e31c43a23a84 Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 21 Nov 2022 05:53:53 +0100 Subject: [PATCH] Fixed a compile-breaking mistake in snd/snd_optimc.c, reported by te_lanus. --- src/sound/snd_optimc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sound/snd_optimc.c b/src/sound/snd_optimc.c index d8c8784fb..45010f087 100644 --- a/src/sound/snd_optimc.c +++ b/src/sound/snd_optimc.c @@ -157,7 +157,7 @@ optimc_reg_write(uint16_t addr, uint8_t val, void *p) if (val != old) { optimc->cur_mode = optimc->cur_wss_enabled = !!(val & 0x80); - if (ctx) /* WSS */ + if (optimc->cur_wss_enabled) /* WSS */ sound_set_cd_audio_filter(ad1848_filter_cd_audio, &optimc->ad1848); else /* SBPro */ sound_set_cd_audio_filter(sbpro_filter_cd_audio, optimc->sb);