Fix a crash with Sound Blaster Pro v2

This commit is contained in:
Alexander Babikov
2022-07-26 17:03:04 +05:00
parent 1261f1cedb
commit 2123f24d8f

View File

@@ -314,7 +314,7 @@ sb_get_buffer_sbpro(int32_t *buffer, int len, void *p)
if (sb->opl_enabled) {
sb->opl.reset_buffer(sb->opl.priv);
if (sb->dsp.sb_type != SBPRO)
if (sb->dsp.sb_type == SBPRO)
sb->opl2.reset_buffer(sb->opl2.priv);
}