]> granicus.if.org Git - nethack/commit
fix #H267 - wielded object burning up panic/crash
authornethack.rankin <nethack.rankin>
Fri, 16 Mar 2007 01:56:43 +0000 (01:56 +0000)
committernethack.rankin <nethack.rankin>
Fri, 16 Mar 2007 01:56:43 +0000 (01:56 +0000)
commitf480c57af07da484991efe8b7771581e0961a49d
treec2b210b7aeb5a95c61b3912b745ab755cb2bf088
parenta2a5df0932e66d136efee608c0146cfdfab29ced
fix #H267 - wielded object burning up panic/crash

     From a bug report:  having a lit
candle or potion of oil be wielded or "worn" as alternate weapon or quiver
at the time it finished burning up would leave a stale worn object pointer
which could trigger a panic or crash.  Need to call useup() instead of
obj_extract_self()+obfree() for objects in inventory, similar to the way
hatching eggs are handled.
doc/fixes34.4
src/timeout.c