more inventory selection

the !allowcnt case wasn't being handled correctly, cuasing counts to
be set to 0 inappropriately.
This commit is contained in:
cohrs
2002-02-05 03:08:36 +00:00
parent 7637374948
commit 747d1ee70f

View File

@@ -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;