more obj->where == OBJ_DELETED
This commit is contained in:
+3
-1
@@ -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
|
* 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.
|
* Doesn't handle unwearing of objects in hero's or monsters' inventories.
|
||||||
*
|
*
|
||||||
* Object positions:
|
* Object positions:
|
||||||
@@ -2472,6 +2473,7 @@ discard_minvent(struct monst *mtmp, boolean uncreate_artifacts)
|
|||||||
* OBJ_BURIED level.buriedobjs chain
|
* OBJ_BURIED level.buriedobjs chain
|
||||||
* OBJ_ONBILL on gb.billobjs chain
|
* OBJ_ONBILL on gb.billobjs chain
|
||||||
* OBJ_LUAFREE obj is dealloc'd from core, but still used by lua
|
* 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
|
void
|
||||||
obj_extract_self(struct obj *obj)
|
obj_extract_self(struct obj *obj)
|
||||||
|
|||||||
Reference in New Issue
Block a user