OSDN Git Service

[Refactor] #38997 o_pop()、drop_near()、inven_drop() にplayer_type *引数を追加 (コールチェーンが長いのでそ...
[hengband/hengband.git] / src / player-inventory.c
index 00735d5..841cd9c 100644 (file)
@@ -2525,7 +2525,7 @@ bool get_item_floor(player_type *creature_ptr, COMMAND_CODE *cp, concptr pmt, co
                                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;
@@ -3017,7 +3017,7 @@ void py_pickup_floor(player_type *creature_ptr, bool pickup)
                        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;