Check that speech file is open.

svn-id: r18028
This commit is contained in:
Travis Howell 2005-05-10 08:42:23 +00:00
parent 4c6bcd9f5a
commit bb8ca7e8ab

View File

@ -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);