]> granicus.if.org Git - nethack/commitdiff
Use enum value, not hardcoded number
authorPasi Kallinen <paxed@alt.org>
Tue, 24 Aug 2021 08:34:28 +0000 (11:34 +0300)
committerPasi Kallinen <paxed@alt.org>
Tue, 24 Aug 2021 08:34:28 +0000 (11:34 +0300)
src/dogmove.c

index 9ae805bd16417e9fd00254f8d967093fa02306bc..a011ac7c21efb07f4a7f4133040d36c490bf8520 100644 (file)
@@ -1354,7 +1354,7 @@ finish_meating(struct monst *mtmp)
     mtmp->meating = 0;
     if (M_AP_TYPE(mtmp) && mtmp->mappearance && mtmp->cham == NON_PM) {
         /* was eating a mimic and now appearance needs resetting */
-        mtmp->m_ap_type = 0;
+        mtmp->m_ap_type = M_AP_NOTHING;
         mtmp->mappearance = 0;
         newsym(mtmp->mx, mtmp->my);
     }