From bf1e3d3e561f22b051cb8cc9a5a1a0dd6d0e6e96 Mon Sep 17 00:00:00 2001 From: PatR Date: Fri, 21 Jun 2024 14:26:48 -0700 Subject: [PATCH] more obj->where == OBJ_DELETED --- src/mkobj.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)