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.
This commit is contained in:
@@ -268,6 +268,7 @@ tin contents can now sometimes be accessed on the same turn that the tin
|
||||
Nth adjustment of feedback when observing a pet eating
|
||||
monsters who want the Amulet won't attack temple priests to try to get it
|
||||
it was possible to generate an object of 0 gold pieces by dropping 2**32 gold
|
||||
wizard mode's sanity_check option missed nested containers and migrating mons
|
||||
|
||||
|
||||
Platform- and/or Interface-Specific Fixes
|
||||
|
||||
Reference in New Issue
Block a user