]> granicus.if.org Git - nethack/commitdiff
add missing initializer of jcp
authorSHIRAKATA Kentaro <argrath@ub32.org>
Sun, 20 Feb 2022 21:18:46 +0000 (06:18 +0900)
committerPatR <rankin@nethack.org>
Sun, 20 Feb 2022 22:43:33 +0000 (14:43 -0800)
src/invent.c

index 93be26e0625e8d03e49ec7feab32d97392388f47..502ca71d8f5429fca8d14720472e33447f3bf27d 100644 (file)
@@ -2943,7 +2943,7 @@ tally_BUCX(struct obj *list, boolean by_nexthere,
      *  have a function again (it was a counter for having skipped gold,
      *  but that's not skipped anymore).
      */
-    *bcp = *ucp = *ccp = *xcp = *ocp = 0;
+    *bcp = *ucp = *ccp = *xcp = *ocp = *jcp = 0;
     for ( ; list; list = (by_nexthere ? list->nexthere : list->nobj)) {
         /* priests always know bless/curse state */
         if (Role_if(PM_CLERIC))