Clear leashmon when leash is generated, even without obj init

This commit is contained in:
Pasi Kallinen
2016-06-03 19:33:51 +03:00
parent 358552a587
commit cc839a56c6

View 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));