diff --git a/doc/fixes34.4 b/doc/fixes34.4 index 381150816..0362fc007 100644 --- a/doc/fixes34.4 +++ b/doc/fixes34.4 @@ -261,6 +261,7 @@ try to keep migrating monsters from escaping the wizard tower affected monsters should always respect "Elbereth" try harder to keep dragged chain between ball and hero fireproof containers should not burn in lava +fix invalid pointer dereference after applying a wielded cream pie Platform- and/or Interface-Specific Fixes diff --git a/src/apply.c b/src/apply.c index d797f6dfd..bbe57d5a6 100644 --- a/src/apply.c +++ b/src/apply.c @@ -2599,6 +2599,8 @@ struct obj *obj; You_cant("see through all the sticky goop on your %s.", body_part(FACE)); } + + setnotworn(obj); /* useup() is appropriate, but we want costly_alteration()'s message */ costly_alteration(obj, COST_SPLAT); obj_extract_self(obj);