Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: impossible "trying to break non-equipped glass obj?" when attack…
…ing with certain objects. Discovered this whilst fuzzing. The hero was attacking monsters with a wielded paper object (scroll, spellbook). One particular monster it attacked was a flaming sphere, which blows up once killed, and will cause fire damage to random objects in inventory. Things like spellbooks and scrolls will burn up instantly - when that happened while said scroll or spellbook was being wielded, it caused an impossible in break_glass_obj(). The fix - guard against materials that don't technically break.
- Loading branch information