diff options
Diffstat (limited to 'scumm/sound.cpp')
-rw-r--r-- | scumm/sound.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp index 8ced244da9..14ca1a21e1 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -651,6 +651,11 @@ void Sound::startHETalkSound(uint32 offset) { byte *ptr; int32 size; + if (!_sfxFile->isOpen()) { + warning("startHETalkSound: Speech file is not open"); + return; + } + _sfxMode |= 2; _vm->res.nukeResource(rtSound, 1); _sfxFile->seek(offset + 4, SEEK_SET); |