diff options
-rw-r--r-- | libempathy-gtk/empathy-ui-utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c index 9919b343b..5f36b4b7e 100644 --- a/libempathy-gtk/empathy-ui-utils.c +++ b/libempathy-gtk/empathy-ui-utils.c @@ -1566,7 +1566,8 @@ empathy_sound_play (GtkWidget *widget, 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); |