diff --git descriptor/sound_desc.cc descriptor/sound_desc.cc index eade5ea962..5abbfe4253 100644 --- descriptor/sound_desc.cc +++ descriptor/sound_desc.cc @@ -94,7 +94,7 @@ DBG_MESSAGE("sound_desc_t::init()","assigned system sound %d to sound %s (id=%i) /* return sound id from index */ sint16 sound_desc_t::get_sound_id(const char *name) { - if( !sound_on && (name==NULL || *name==0) ) { + if( !sound_on || name==NULL || *name==0 ) { return NO_SOUND; } sound_ids *s = name_sound.get(name);