more obj->where == OBJ_DELETED

This commit is contained in:
PatR
2024-06-21 14:26:48 -07:00
parent d5d646a9e9
commit bf1e3d3e56

View File

@@ -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)