]> granicus.if.org Git - nethack/commitdiff
Init the done variable to false
authorPasi Kallinen <paxed@alt.org>
Tue, 1 Dec 2020 17:36:19 +0000 (19:36 +0200)
committerPasi Kallinen <paxed@alt.org>
Fri, 4 Dec 2020 07:30:22 +0000 (09:30 +0200)
src/mhitm.c
src/mhitu.c
src/uhitm.c

index 6b182d093724fa950876b7ae926e8e4db7431a59..f868430358c4aece7c3ddbd09e331b1883667346 100644 (file)
@@ -865,6 +865,7 @@ int dieroll;
     mhm.permdmg = 0;
     mhm.specialdmg = 0;
     mhm.dieroll = dieroll;
+    mhm.done = FALSE;
 
     if ((touch_petrifies(pd) /* or flesh_petrifies() */
          || (mattk->adtyp == AD_DGST && pd == &mons[PM_MEDUSA]))
index ba628651ba992e728b15b2c1d21d101d9104e8f7..89d77dd2d65594c7a151c5dc61f096884b63c52b 100644 (file)
@@ -972,6 +972,7 @@ register struct attack *mattk;
     mhm.hitflags = MM_MISS;
     mhm.permdmg = 0;
     mhm.specialdmg = 0;
+    mhm.done = FALSE;
 
     if (!canspotmon(mtmp))
         map_invisible(mtmp->mx, mtmp->my);
index c78032972f1e7f2bd9a3d75818d331da6007d6f8..470bb02cba403e882a893357a8a84a008a858691 100644 (file)
@@ -4185,6 +4185,7 @@ int specialdmg; /* blessed and/or silver bonus against various things */
     mhm.hitflags = MM_MISS;
     mhm.permdmg = 0;
     mhm.specialdmg = specialdmg;
+    mhm.done = FALSE;
 
     armpro = magic_negation(mdef);
     /* since hero can't be cancelled, only defender's armor applies */