Sunsword kept glowing after monster wielding it died

- <Someone> reported this bug to the mailing list
- add a check in relobj(), which should catch all the cases
This commit is contained in:
cohrs
2002-03-27 04:58:42 +00:00
parent 6cdf92851e
commit 8a3c5a621f
2 changed files with 3 additions and 0 deletions

View File

@@ -543,6 +543,8 @@ boolean is_pet; /* If true, pet should keep wielded/worn items */
costly_spot(mtmp->mx, mtmp->my))
otmp->no_charge = 1;
#endif
if (otmp->owornmask & W_WEP)
setmnotwielded(mtmp, otmp);
otmp->owornmask = 0L;
}
if (is_pet && cansee(omx, omy) && flags.verbose)