From 747d1ee70f425b73a89f1c461946b6d3743f461d Mon Sep 17 00:00:00 2001 From: cohrs Date: Tue, 5 Feb 2002 03:08:36 +0000 Subject: [PATCH] more inventory selection the !allowcnt case wasn't being handled correctly, cuasing counts to be set to 0 inappropriately. --- src/invent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1