aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sound
diff options
context:
space:
mode:
authorWalter van Niftrik2015-03-24 11:15:19 +0100
committerMatthew Hoops2015-07-07 20:19:48 -0400
commit82f585871bdb435d6f30d7005456dba0fb90c985 (patch)
tree7134d2d0b530bdad9992db849443108fb821ad87 /engines/sci/sound
parentbeed23c441b5b36e7081589a004c7ab9bb253829 (diff)
downloadscummvm-rg350-82f585871bdb435d6f30d7005456dba0fb90c985.tar.gz
scummvm-rg350-82f585871bdb435d6f30d7005456dba0fb90c985.tar.bz2
scummvm-rg350-82f585871bdb435d6f30d7005456dba0fb90c985.zip
SCI: Check OPL init return code
Diffstat (limited to 'engines/sci/sound')
-rw-r--r--engines/sci/sound/drivers/adlib.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sci/sound/drivers/adlib.cpp b/engines/sci/sound/drivers/adlib.cpp
index aac8a0dfee..da222fb2da 100644
--- a/engines/sci/sound/drivers/adlib.cpp
+++ b/engines/sci/sound/drivers/adlib.cpp
@@ -236,7 +236,8 @@ int MidiDriver_AdLib::openAdLib(bool isSCI0) {
if (!_opl)
return -1;
- _opl->init();
+ if (!_opl->init())
+ return -1;
setRegister(0xBD, 0);
setRegister(0x08, 0);