From: Carl Worth Date: Sun, 22 Apr 2007 17:48:48 +0000 (-0700) Subject: Fix to not pull from bin with score 0 when there are no items to introduce. X-Git-Url: https://git.cworth.org/git?p=mnemon;a=commitdiff_plain;h=4d9ee7a6a873fbe3e1264263ccd53127569afa58 Fix to not pull from bin with score 0 when there are no items to introduce. --- diff --git a/mnemon.c b/mnemon.c index f4af000..72c5174 100644 --- a/mnemon.c +++ b/mnemon.c @@ -651,6 +651,13 @@ mnemon_do_challenges (mnemon_t *mnemon, if (to_introduce < 0) to_introduce = 0; + /* Get rid of bin with score of 0 if we aren't going to be + * introducing anything from it. */ + if (to_introduce == 0) { + bin = mnemon_get_bin (mnemon, 0); + mnemon_remove_bin (mnemon, bin); + } + if (unlearned) { printf ("You've got %d items to learn already. ", unlearned); if (to_introduce)