From: cohrs Date: Tue, 5 Feb 2002 03:08:36 +0000 (+0000) Subject: more inventory selection X-Git-Tag: MOVE2GIT~3260 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=747d1ee70f425b73a89f1c461946b6d3743f461d;p=nethack more inventory selection the !allowcnt case wasn't being handled correctly, cuasing counts to be set to 0 inappropriately. --- diff --git a/src/invent.c b/src/invent.c index c88ae6cb3..cf279e615 100644 --- a/src/invent.c +++ b/src/invent.c @@ -945,7 +945,7 @@ register const char *let,*word; ilet = display_pickinv(allowed_choices, TRUE, allowcnt ? &ctmp : (long *)0); if(!ilet) continue; - if (ctmp >= 0) { + if (allowcnt && ctmp >= 0) { cnt = ctmp; if (!cnt) prezero = TRUE; allowcnt = 2;