From 0773177bba98de9d9e8680eed129089039997635 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 25 Apr 2004 16:54:59 +0000 Subject: Fix regression in DIG demo svn-id: r13627 --- scumm/sound.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scumm') diff --git a/scumm/sound.cpp b/scumm/sound.cpp index 1e4eaddddd..1211eaaa91 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -930,8 +930,8 @@ File *Sound::openSfxFile() { if (!file->isOpen()) { sprintf(buf, "%s.tlk", _vm->getGameName()); - file->open(buf); - file->setEnc(0x69); + if (file->open(buf)) + file->setEnc(0x69); _soundMode = kVOCMode; } else if (_soundMode != kVOCMode) { /* Now load the 'offset' index in memory to be able to find the MP3 data -- cgit v1.2.3