diff --git a/src/mkobj.c b/src/mkobj.c index 4b2b51894..93f762c26 100644 --- a/src/mkobj.c +++ b/src/mkobj.c @@ -2459,7 +2459,8 @@ discard_minvent(struct monst *mtmp, boolean uncreate_artifacts) /* * Free obj from whatever list it is on in preparation for deleting it - * or moving it elsewhere; obj->where will end up set to OBJ_FREE. + * or moving it elsewhere; obj->where will end up set to OBJ_FREE unless + * it is already OBJ_LUAFREE or OBJ_DELETED. * Doesn't handle unwearing of objects in hero's or monsters' inventories. * * Object positions: @@ -2472,6 +2473,7 @@ discard_minvent(struct monst *mtmp, boolean uncreate_artifacts) * OBJ_BURIED level.buriedobjs chain * OBJ_ONBILL on gb.billobjs chain * OBJ_LUAFREE obj is dealloc'd from core, but still used by lua + * OBJ_DELETED obj has been deleted from play but not yet deallocated */ void obj_extract_self(struct obj *obj)