more #H267 - cursed figurine auto-activation
Figurine activation timer had the same problem as burning objects: it didn't clear up worn object pointers when destroying the object.
This commit is contained in:
@@ -1852,8 +1852,12 @@ long timeout;
|
||||
}
|
||||
}
|
||||
/* free figurine now */
|
||||
obj_extract_self(figurine);
|
||||
obfree(figurine, (struct obj *)0);
|
||||
if (carried(figurine)) {
|
||||
useup(figurine);
|
||||
} else {
|
||||
obj_extract_self(figurine);
|
||||
obfree(figurine, (struct obj *)0);
|
||||
}
|
||||
if (redraw) newsym(cc.x, cc.y);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user