bugfix for the reasoner in the C runtime

This commit is contained in:
kr.angelov
2012-12-14 21:24:17 +00:00
parent 8ec7ecacca
commit 16a2c38f38

View File

@@ -68,8 +68,10 @@ pgf_reasoner_cat_init(PgfReasoner* rs,
return false;
}
PgfExprQState q = {cont, cont_prob, 0, abscat};
gu_buf_heap_push(rs->pqueue, &pgf_expr_qstate_order, &q);
if (abscat->n_functions > 0) {
PgfExprQState q = {cont, cont_prob, 0, abscat};
gu_buf_heap_push(rs->pqueue, &pgf_expr_qstate_order, &q);
}
return true;
}