From 39533d5875d744fb17fc775bb629446eba4b845f Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Sun, 22 Apr 2007 02:42:35 +0000 Subject: [PATCH] m_useupall While updating discard_minvent I noticed that m_useupall is using the wrong routine to get rid of a monster's weapon. It probably doesn't matter since I don't think monsters can use up items they're wielding or wield items they could use up. --- src/mthrowu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mthrowu.c b/src/mthrowu.c index 78513a334..a72c3ed65 100644 --- a/src/mthrowu.c +++ b/src/mthrowu.c @@ -452,8 +452,8 @@ struct monst *mon; struct obj *obj; { obj_extract_self(obj); - possibly_unwield(mon, FALSE); if (obj->owornmask) { + if (obj == MON_WEP(mon)) mwepgone(mon); mon->misc_worn_check &= ~obj->owornmask; update_mon_intrinsics(mon, obj, FALSE, FALSE); obj->owornmask = 0L;