Code:
while (obj) {
struct object *next = obj->next; [B][I]<-- crashes here[/I][/B]
/* do something */
/* Delete the object */
object_delete(&obj);
obj = next;
}
Found the following occurences in 4.0.2 code:
- delete_monster_idx()
- monster_death()
- process_monster_grab_objects()
- push_object()
- project_o()
- store_maint()
- monster_death_stats()
Leave a comment: