]> granicus.if.org Git - nethack/commitdiff
Fake leash object is not attached
authorPasi Kallinen <paxed@alt.org>
Wed, 5 Dec 2018 20:35:59 +0000 (22:35 +0200)
committerPasi Kallinen <paxed@alt.org>
Wed, 5 Dec 2018 20:36:03 +0000 (22:36 +0200)
When farlooking at a fake leash object, make it explicitly not
be attached to a monster.

src/pager.c

index e9fe016ed2655f716aef592921d4de0bdad8ee1f..22df977e49a0c446cd529b9af851e189251ce5f1 100644 (file)
@@ -187,6 +187,8 @@ struct obj **obj_p;
             otmp->quan = 2L; /* to force pluralization */
         else if (otmp->otyp == SLIME_MOLD)
             otmp->spe = context.current_fruit; /* give it a type */
+        else if (otmp->otyp == LEASH)
+            otmp->leashmon = 0;
         if (mtmp && has_mcorpsenm(mtmp)) /* mimic as corpse/statue */
             otmp->corpsenm = MCORPSENM(mtmp);
         else if (otmp->otyp == CORPSE && glyph_is_body(glyph))