diff options
Diffstat (limited to 'engines/sword1/sound.cpp')
-rw-r--r-- | engines/sword1/sound.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/sword1/sound.cpp b/engines/sword1/sound.cpp index d8e664fed3..30e12cda93 100644 --- a/engines/sword1/sound.cpp +++ b/engines/sword1/sound.cpp @@ -222,7 +222,7 @@ bool Sound::speechFinished() { void Sound::newScreen(uint32 screen) { if (_currentCowFile != SwordEngine::_systemVars.currentCD) { - if (_currentCowFile) + if (_cowFile.isOpen()) closeCowSystem(); initCowSystem(); } @@ -545,6 +545,9 @@ void Sound::stopSpeech() { } void Sound::initCowSystem() { + if (SwordEngine::_systemVars.currentCD == 0) + return; + char cowName[25]; /* look for speech1/2.clu in the data dir and speech/speech.clu (running from cd or using cd layout) |