Figurine activation timer had the same problem as burning objects:
it didn't clear up worn object pointers when destroying the object.
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
+wielded/worn figurine which auto-transformed had same stale pointer bug
Platform- and/or Interface-Specific Fixes
}
}
/* free figurine now */
- obj_extract_self(figurine);
- obfree(figurine, (struct obj *)0);
+ if (carried(figurine)) {
+ useup(figurine);
+ } else {
+ obj_extract_self(figurine);
+ obfree(figurine, (struct obj *)0);
+ }
if (redraw) newsym(cc.x, cc.y);
}