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:
nethack.allison
2006-09-29 00:40:18 +00:00
parent c07c48ab01
commit 15d933a07f
2 changed files with 3 additions and 0 deletions

View File

@@ -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);