ext/games_dice/probabilities.c in games_dice-0.3.12 vs ext/games_dice/probabilities.c in games_dice-0.4.0
- old
+ new
@@ -470,10 +470,10 @@
pl_result = create_probability_list();
pr = alloc_probs_iv( pl_result, 1 + k * (pl->slots - 1), 0.0 );
pl_result->offset = pl->offset * k;
for ( i = 0; i < pl->slots; i++ ) {
- if ( ! pl->probs[i] > 0.0 ) continue;
+ if ( pl->probs[i] <= 0.0 ) continue;
q = i + pl->offset;
calc_keep_distributions( pl, k, q, kbest, keep_distributions );
calc_p_table( pl, q, kbest, p_table );