svn path=/trunk/; revision=2102
EmpathySoundEntry *entry = &(sound_entries[sound_id]);
gboolean should_play = TRUE;
EmpathySoundEntry *entry = &(sound_entries[sound_id]);
gboolean should_play = TRUE;
- g_assert (entry->sound_id == sound_id);
+ g_return_if_fail (entry->sound_id < LAST_EMPATHY_SOUND);
+ g_return_if_fail (entry->sound_id == sound_id);
if (entry->gconf_key != NULL) {
should_play = empathy_sound_pref_is_enabled (entry->gconf_key);
if (entry->gconf_key != NULL) {
should_play = empathy_sound_pref_is_enabled (entry->gconf_key);