trouble after applying a wielded cream pie
<Someone> wrote: > I can' t find this bug in the known bug list. If I missed I do apologize. > It occurs on the standard windows nethack.exe. Just wield a cream pie > and then apply it. Press x to switch weapons. Program in disorder. > s - 1752440940 glorkum 32 26485 101's named ? (alternate weapon; not wielded). > Greetings, <Someone> It crashed with an access violation for me.
This commit is contained in:
@@ -261,6 +261,7 @@ try to keep migrating monsters from escaping the wizard tower
|
|||||||
affected monsters should always respect "Elbereth"
|
affected monsters should always respect "Elbereth"
|
||||||
try harder to keep dragged chain between ball and hero
|
try harder to keep dragged chain between ball and hero
|
||||||
fireproof containers should not burn in lava
|
fireproof containers should not burn in lava
|
||||||
|
fix invalid pointer dereference after applying a wielded cream pie
|
||||||
|
|
||||||
|
|
||||||
Platform- and/or Interface-Specific Fixes
|
Platform- and/or Interface-Specific Fixes
|
||||||
|
|||||||
@@ -2599,6 +2599,8 @@ struct obj *obj;
|
|||||||
You_cant("see through all the sticky goop on your %s.",
|
You_cant("see through all the sticky goop on your %s.",
|
||||||
body_part(FACE));
|
body_part(FACE));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setnotworn(obj);
|
||||||
/* useup() is appropriate, but we want costly_alteration()'s message */
|
/* useup() is appropriate, but we want costly_alteration()'s message */
|
||||||
costly_alteration(obj, COST_SPLAT);
|
costly_alteration(obj, COST_SPLAT);
|
||||||
obj_extract_self(obj);
|
obj_extract_self(obj);
|
||||||
|
|||||||
Reference in New Issue
Block a user