X-Git-Url: https://git.cworth.org/git?p=mnemon;a=blobdiff_plain;f=mnemon.c;h=e13d3b9ff9f707f458a8ca02ec5b0c31818922a9;hp=1eebd20df491681e42a21190451ec55116f3893b;hb=a6ba5c83f3b9f07411c5e281488ced3b354d2b53;hpb=698b08fa45715b2d24f311c041f3858decbd21d6 diff --git a/mnemon.c b/mnemon.c index 1eebd20..e13d3b9 100644 --- a/mnemon.c +++ b/mnemon.c @@ -650,17 +650,13 @@ mnemon_do_challenges (mnemon_t *mnemon) if (correct) { printf ("Correct!\n\n"); - if (item->count < 0) - item->count = 1; - else - item->count++; + item->count++; } else { printf (" %s is the correct answer.\n\n", item->response); + item->count--; if (item->count > 0) item->count = -1; - else - item->count--; } bin = mnemon_get_bin (mnemon, item->count);