Fixed a compile-breaking mistake in snd/snd_optimc.c, reported by te_lanus.

This commit is contained in:
OBattler
2022-11-21 05:53:53 +01:00
parent 24a1ffb7d0
commit e167988a92

View File

@@ -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);