The function gets only called from the event handler, which returns
early without calling reload_current_mood if current_mood and is NULL.
* This function is called on events which render the current list of
* admissible files useless, for example if an attribute is removed from the
* attribute table.
- *
- * If no mood is currently open, the function returns success.
*/
static int reload_current_mood(void)
{
int ret;
char *mood_name = NULL;
+ assert(current_mood);
ret = clear_score_table();
if (ret < 0)
return ret;
- if (!current_mood)
- return 1;
PARA_NOTICE_LOG("reloading %s\n", current_mood->name?
current_mood->name : "(dummy)");
if (current_mood->name)