From dc7d434f9876857ea3b00139b47d79bdd1568fb3 Mon Sep 17 00:00:00 2001 From: SHIRAKATA Kentaro Date: Mon, 21 Feb 2022 06:18:46 +0900 Subject: [PATCH] add missing initializer of jcp --- src/invent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))