aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2004-04-25 16:54:59 +0000
committerMax Horn2004-04-25 16:54:59 +0000
commit0773177bba98de9d9e8680eed129089039997635 (patch)
tree2cfca86ce28f990a593298c47bcf898c0a8cd87b /scumm
parent795a735a312c1a6c444c4b35c62721b69eee3d8b (diff)
downloadscummvm-rg350-0773177bba98de9d9e8680eed129089039997635.tar.gz
scummvm-rg350-0773177bba98de9d9e8680eed129089039997635.tar.bz2
scummvm-rg350-0773177bba98de9d9e8680eed129089039997635.zip
Fix regression in DIG demo
svn-id: r13627
Diffstat (limited to 'scumm')
-rw-r--r--scumm/sound.cpp4
1 files changed, 2 insertions, 2 deletions
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