Merge pull request #2515 from lemondrops/bugfix/sbprov2_crash

Fix a crash with Sound Blaster Pro v2
This commit is contained in:
Miran Grča
2022-07-26 15:09:47 +02:00
committed by GitHub

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