#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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user