From: SHIRAKATA Kentaro Date: Sun, 20 Feb 2022 21:18:46 +0000 (+0900) Subject: add missing initializer of jcp X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc7d434f9876857ea3b00139b47d79bdd1568fb3;p=nethack add missing initializer of jcp --- diff --git a/src/invent.c b/src/invent.c index 93be26e06..502ca71d8 100644 --- a/src/invent.c +++ b/src/invent.c @@ -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))