]> granicus.if.org Git - nethack/commitdiff
Clear leashmon when leash is generated, even without obj init
authorPasi Kallinen <paxed@alt.org>
Fri, 3 Jun 2016 16:33:51 +0000 (19:33 +0300)
committerPasi Kallinen <paxed@alt.org>
Fri, 3 Jun 2016 16:33:51 +0000 (19:33 +0300)
src/mkobj.c

index a6680835e143774dbf9e1134475927168b7697b2..aa1778a1df836e30adb676345b0384fc018a366f 100644 (file)
@@ -872,9 +872,6 @@ boolean artif;
             case BAG_OF_HOLDING:
                 mkbox_cnts(otmp);
                 break;
-            case LEASH:
-                otmp->leashmon = 0;
-                break;
             case EXPENSIVE_CAMERA:
             case TINNING_KIT:
             case MAGIC_MARKER:
@@ -1034,6 +1031,9 @@ boolean artif;
         /* case TIN: */
         set_corpsenm(otmp, otmp->corpsenm);
         break;
+    case LEASH:
+        otmp->leashmon = 0;
+        break;
     case SPE_NOVEL:
         otmp->novelidx = -1; /* "none of the above"; will be changed */
         otmp = oname(otmp, noveltitle(&otmp->novelidx));