]> granicus.if.org Git - nethack/commit
object deletion bookkeeping
authornethack.rankin <nethack.rankin>
Thu, 22 Mar 2007 04:23:55 +0000 (04:23 +0000)
committernethack.rankin <nethack.rankin>
Thu, 22 Mar 2007 04:23:55 +0000 (04:23 +0000)
commit271632db58c9817bd9ac7a81d8816a7a07dd922d
tree06366a1377154f85de534fea3ed6ef75b65af9f8
parenta5640e4bc8bd0c6e89a8420de82731210e802e0b
object deletion bookkeeping

     After the apply-wielded-pie-to-blind-self (quite a while back) and
quivered-candle-burns-out (a week or two ago) bugs where object deletion
left dangling worn-object pointers, add a general check to try to catch
such things at the time of deletion.  Also, clear thrownobj and kickobj
pointers at the time corresponding object is deleted.  (This doesn't add
any checks for them becoming null during process of throwing or kicking,
where I'm not sure that the possibility of missile going away is being
adequately tracked).
src/dokick.c
src/shk.c