if (!(o_idx && creature_ptr->current_floor_ptr->o_list[o_idx].next_o_idx)) break;
/* Remove the first object from the list. */
- excise_object_idx(o_idx);
+ excise_object_idx(creature_ptr->current_floor_ptr, o_idx);
/* Find end of the list. */
i = g_ptr->o_idx;
creature_ptr->window |= (PW_PLAYER);
/* Delete the gold */
- delete_object_idx(this_o_idx);
+ delete_object_idx(creature_ptr->current_floor_ptr, this_o_idx);
/* Check the next object */
continue;