more inventory selection
the !allowcnt case wasn't being handled correctly, cuasing counts to be set to 0 inappropriately.
This commit is contained in:
+1
-1
@@ -945,7 +945,7 @@ register const char *let,*word;
|
|||||||
ilet = display_pickinv(allowed_choices, TRUE,
|
ilet = display_pickinv(allowed_choices, TRUE,
|
||||||
allowcnt ? &ctmp : (long *)0);
|
allowcnt ? &ctmp : (long *)0);
|
||||||
if(!ilet) continue;
|
if(!ilet) continue;
|
||||||
if (ctmp >= 0) {
|
if (allowcnt && ctmp >= 0) {
|
||||||
cnt = ctmp;
|
cnt = ctmp;
|
||||||
if (!cnt) prezero = TRUE;
|
if (!cnt) prezero = TRUE;
|
||||||
allowcnt = 2;
|
allowcnt = 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user