]> granicus.if.org Git - nethack/commit
fix #H1419 - missing object sanity checks for nested containers (trunk only)
authornethack.rankin <nethack.rankin>
Tue, 13 Nov 2007 21:48:01 +0000 (21:48 +0000)
committernethack.rankin <nethack.rankin>
Tue, 13 Nov 2007 21:48:01 +0000 (21:48 +0000)
commit44a7f87c08bcbfa1a847c91c53577b29002748b1
tree3592710363bf3b48fa64ebbc4f924cd4c37cc80a
parent7c860335c16bfb8382eab4b75ebd01dbd1a69120
fix #H1419 - missing object sanity checks for nested containers (trunk only)

     From a bug report, wizard mode's sanity_check
option has a check for container contents but wasn't using it recursively
for nested containers, so the contents of the latter weren't checked.
This fixes that, and also adds a check for objects carried by migrating
monsters.  And it now formats objects and monsters fully even if the hero
happens to be blind or hallucinating at the time.

     Tested by using a debugger to poke in various bits of invalid data.
doc/fixes35.0
src/mkobj.c