add missing initializer of jcp

This commit is contained in:
SHIRAKATA Kentaro
2022-02-21 06:18:46 +09:00
committed by PatR
parent cca90a061c
commit dc7d434f98

View 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))