exploding magic pointers

Fix the two problems that <Someone> reported about stale pointer use
after a bag of holding has exploded.  use_container() passed the wrong
variable for quantity when calling useupf(), and doapply() had no way to
tell if the object being used had been destroyed so could use an invalid
pointer when checking for speaking artifact.  The fix for the latter is
much simpler than what <Someone> suggested.
This commit is contained in:
nethack.rankin
2005-02-06 03:25:04 +00:00
parent 5ff9b37ba4
commit 8414b5214f
3 changed files with 16 additions and 8 deletions

View File

@@ -85,6 +85,7 @@ monsters evading a kick on noteleport levels would cause a "teleports" message
interrupt current activity during certain stages of petrification or vomiting
warning about bad food didn't recognize tin of Medusa meat
eating tainted Medusa corpse caused food poisioning instead of petrification
avoid potential stale pointer use after magic bag explosion
Platform- and/or Interface-Specific Fixes