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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user