diff options
author | Torbjörn Andersson | 2008-08-07 13:36:02 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2008-08-07 13:36:02 +0000 |
commit | 99ade3d25c3d916aa6b95019fca2431a275afc78 (patch) | |
tree | f1cf1dcf63720e83d2e5830f953d756afd445dc6 | |
parent | 1a99bce2011ec14772b581ec9df2ba8a90894ecf (diff) | |
download | scummvm-rg350-99ade3d25c3d916aa6b95019fca2431a275afc78.tar.gz scummvm-rg350-99ade3d25c3d916aa6b95019fca2431a275afc78.tar.bz2 scummvm-rg350-99ade3d25c3d916aa6b95019fca2431a275afc78.zip |
Initialise the _sound object. Otherwise, ScummVM crashes for me if I use a native
MIDI driver instead of Adlib.
svn-id: r33678
-rw-r--r-- | engines/kyra/lol.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/kyra/lol.cpp b/engines/kyra/lol.cpp index ef1121baa0..a3ad01ce50 100644 --- a/engines/kyra/lol.cpp +++ b/engines/kyra/lol.cpp @@ -87,6 +87,9 @@ int LoLEngine::init() { _screen->setAnimBlockPtr(10000); _screen->setScreenDim(0); + if (!_sound->init()) + error("Couldn't init sound"); + return 0; } |