]> granicus.if.org Git - nethack/commitdiff
more object deletion bookkeeping
authornethack.rankin <nethack.rankin>
Sat, 24 Mar 2007 03:57:50 +0000 (03:57 +0000)
committernethack.rankin <nethack.rankin>
Sat, 24 Mar 2007 03:57:50 +0000 (03:57 +0000)
     Monster breaking out of armor triggered the object-still-worn warning
that was added to object deletion a couple of days ago.  Update m_useupall()
to clear owornmask.

src/mthrowu.c

index 687a757ffd24dde592a2a7ed1880a0c35a247fab..78513a334f6932adac80756fc35b95a2f042b1f8 100644 (file)
@@ -456,6 +456,7 @@ struct obj *obj;
        if (obj->owornmask) {
            mon->misc_worn_check &= ~obj->owornmask;
            update_mon_intrinsics(mon, obj, FALSE, FALSE);
+           obj->owornmask = 0L;
        }
        obfree(obj, (struct obj*) 0);
 }