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.
This commit is contained in:
@@ -337,6 +337,8 @@ when shopkeeper "gratefully inherits possessions" of hero who dies in shop
|
||||
dying in a shop while wielding two weapons could cause "Setworn: mask" warning
|
||||
make score file processing more bullet proof to avoid potential security issue
|
||||
towel equipped in weapon, alternate weapon, or quiver slot can be applied
|
||||
lit candle or potion of oil which burned out while equipped would leave stale
|
||||
weapon/alternate-weapon/quiver pointer that could cause panic or crash
|
||||
|
||||
|
||||
Platform- and/or Interface-Specific Fixes
|
||||
|
||||
Reference in New Issue
Block a user