From 82f585871bdb435d6f30d7005456dba0fb90c985 Mon Sep 17 00:00:00 2001 From: Walter van Niftrik Date: Tue, 24 Mar 2015 11:15:19 +0100 Subject: SCI: Check OPL init return code --- engines/sci/sound/drivers/adlib.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/sci/sound') 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); -- cgit v1.2.3