From fcc8d4d3c3aeb2984016efe333cf81479ae72e9a Mon Sep 17 00:00:00 2001 From: nhmall Date: Fri, 1 May 2026 22:36:37 -0400 Subject: [PATCH] mhm initialization --- src/uhitm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/uhitm.c b/src/uhitm.c index eb04e0d1a..15222a3bd 100644 --- a/src/uhitm.c +++ b/src/uhitm.c @@ -4837,7 +4837,8 @@ damageum( struct attack *mattk, /* hero's attack */ int specialdmg) /* blessed and/or silver bonus against various things */ { - struct mhitm_data mhm; + /* { damage, hitflags, done, permdmg, specialdmg, dieroll } */ + struct mhitm_data mhm = { 0, 0, FALSE, FALSE, 0, 0 }; mhm.damage = d((int) mattk->damn, (int) mattk->damd); mhm.hitflags = M_ATTK_MISS;