mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-23 02:11:38 +00:00
Check that speech file is open.
svn-id: r18028
This commit is contained in:
parent
4c6bcd9f5a
commit
bb8ca7e8ab
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user