#R650: Game crash (Panic - obj not free)

> <email deleted>
> Oops! [...]
> Suddenly, the dungeon collapses.
> place_object: obj not free
>
> The crash is reproducible in wizmode by wishing for a landmine, arming it and
> pushing a wished-for boulder onto it.
This commit is contained in:
nethack.allison
2002-03-23 01:35:59 +00:00
parent 9fd9ff3db9
commit fba4cbd6af
3 changed files with 6 additions and 4 deletions

View File

@@ -438,8 +438,9 @@ struct obj *obj; /* only scatter this obj */
&& rn2(10)) {
if (otmp->otyp == BOULDER) {
pline("%s apart.", Tobjnam(otmp, "break"));
fracture_rock(otmp);
place_object(otmp, sx, sy); /* put fragments on floor */
fracture_rock(otmp); /* the will place fragments on floor */
obj_extract_self(otmp);
place_object(otmp, sx, sy);
if ((otmp = sobj_at(BOULDER, sx, sy)) != 0) {
/* another boulder here, restack it to the top */
obj_extract_self(otmp);