aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
authorTravis Howell2005-05-08 04:54:08 +0000
committerTravis Howell2005-05-08 04:54:08 +0000
commit0bcd57e87fc6437b789916edc204bf40e07c67a5 (patch)
tree8d05f2ccb0d9900b21ef951776b35067b995cff1 /simon
parent8e5bf3c0925aeef59a7dafb9fb7e42b4c0482c37 (diff)
downloadscummvm-rg350-0bcd57e87fc6437b789916edc204bf40e07c67a5.tar.gz
scummvm-rg350-0bcd57e87fc6437b789916edc204bf40e07c67a5.tar.bz2
scummvm-rg350-0bcd57e87fc6437b789916edc204bf40e07c67a5.zip
Cleanup
svn-id: r17950
Diffstat (limited to 'simon')
-rw-r--r--simon/sound.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/simon/sound.cpp b/simon/sound.cpp
index dae44ea654..cc9fd268c0 100644
--- a/simon/sound.cpp
+++ b/simon/sound.cpp
@@ -337,12 +337,9 @@ Sound::Sound(const byte game, const GameSpecificSettings *gss, SoundMixer *mixer
}
}
#endif
- if (!_effects) {
- s = gss->voc_effects_filename;
- file->open(s);
- if (file->isOpen() == false) {
- debug(0, "Can't open effects file %s", s);
- } else {
+ if (!_effects && gss->voc_effects_filename && gss->voc_effects_filename[0]) {
+ file->open(gss->voc_effects_filename);
+ if (file->isOpen()) {
_effects = new VocSound(_mixer, file);
}
}