From d8909ec3d0a53368adfeacb7c90ce06303655c14 Mon Sep 17 00:00:00 2001 From: nhmall Date: Mon, 4 Dec 2023 11:26:50 -0500 Subject: [PATCH] comment 1st dereference of otmp in bhitm() --- src/zap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zap.c b/src/zap.c index 498cda023..ca2ae21f8 100644 --- a/src/zap.c +++ b/src/zap.c @@ -153,7 +153,7 @@ bhitm(struct monst *mtmp, struct obj *otmp) boolean reveal_invis = FALSE, learn_it = FALSE; boolean dbldam = Role_if(PM_KNIGHT) && u.uhave.questart; boolean skilled_spell, helpful_gesture = FALSE; - int dmg, otyp = otmp->otyp; + int dmg, otyp = otmp->otyp; /* otmp is not NULL */ const char *zap_type_text = "spell"; struct obj *obj; boolean disguised_mimic = (mtmp->data->mlet == S_MIMIC