]> granicus.if.org Git - nethack/commitdiff
Count only stacks when listing container contents.
authorSean Hunt <scshunt@csclub.uwaterloo.ca>
Mon, 25 May 2015 23:59:31 +0000 (08:59 +0900)
committerSean Hunt <scshunt@csclub.uwaterloo.ca>
Tue, 26 May 2015 00:04:04 +0000 (09:04 +0900)
By popular demand of the beta testers.

src/objnam.c

index 2ef41f5b921ca4834c01d766c6e8a247951fab67..8f66d253b9eec44318258b2c257e478e2b173bfe 100644 (file)
@@ -818,7 +818,7 @@ register struct obj *obj;
            preference option to choose between the two alternatives)
            since it's somewhat odd so see "containing 1002 items"
            when there are 2 scrolls plus 1000 gold pieces */
-        long itemcount = count_contents(obj, FALSE, TRUE, TRUE);
+        long itemcount = count_contents(obj, FALSE, FALSE, TRUE);
 
         Sprintf(eos(bp), " containing %ld item%s", itemcount,
                 plur(itemcount));