From 05ab895737e98db68211bb008762124684c953d6 Mon Sep 17 00:00:00 2001 From: cohrs Date: Tue, 29 Jan 2002 04:19:46 +0000 Subject: [PATCH] /tmp/msg --- src/invent.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/invent.c b/src/invent.c index 131f5e80d..05daf9dde 100644 --- a/src/invent.c +++ b/src/invent.c @@ -945,8 +945,10 @@ register const char *let,*word; ilet = display_pickinv(allowed_choices, TRUE, allowcnt ? &ctmp : (long *)0); if(!ilet) continue; - if (ctmp) { + pline("got count %ld", ctmp); + if (ctmp >= 0) { cnt = ctmp; + if (!cnt) prezero = TRUE; allowcnt = 2; } if(ilet == '\033') {