/* Make an object (if possible) */
if (!make_object(q_ptr, mode)) return;
- o_idx = o_pop();
+ o_idx = o_pop(floor_ptr);
/* Success */
if (o_idx)
/* Make some gold */
if (!make_gold(q_ptr)) return;
- o_idx = o_pop();
+ o_idx = o_pop(floor_ptr);
/* Success */
if (o_idx)
/* Apply the saving throw */
if (randint0(100) < chance) continue;
- delete_object_idx(i);
+ delete_object_idx(floor_ptr, i);
/* Count it */
num++;