From 4d9ee7a6a873fbe3e1264263ccd53127569afa58 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sun, 22 Apr 2007 10:48:48 -0700 Subject: [PATCH] Fix to not pull from bin with score 0 when there are no items to introduce. --- mnemon.c | 7 +++++++ 1 file changed, 7 insertions(+) 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) -- 2.43.0