diff options
author | Travis Howell | 2005-05-10 08:42:23 +0000 |
---|---|---|
committer | Travis Howell | 2005-05-10 08:42:23 +0000 |
commit | bb8ca7e8abf86eae617e3614e46d027235fe050d (patch) | |
tree | f9991a96fc167cfc7ad0d6aa65fd43e2cf4f78c9 /scumm/sound.cpp | |
parent | 4c6bcd9f5aba879a085104901c0342ead779baf0 (diff) | |
download | scummvm-rg350-bb8ca7e8abf86eae617e3614e46d027235fe050d.tar.gz scummvm-rg350-bb8ca7e8abf86eae617e3614e46d027235fe050d.tar.bz2 scummvm-rg350-bb8ca7e8abf86eae617e3614e46d027235fe050d.zip |
Check that speech file is open.
svn-id: r18028
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); |