- concptr q = _("どの死体を捧げますか? ", "Sacrifice which corpse? ");
- concptr s = _("捧げられる死体を持っていない。", "You have nothing to scrifice.");
- OBJECT_IDX item;
- object_type *o_ptr;
- o_ptr = choose_object(caster_ptr, &item, q, s, (USE_INVEN | USE_FLOOR), FuncItemTester(&object_type::is_offerable));
- if (!o_ptr)
+ constexpr auto q = _("どの死体を捧げますか? ", "Sacrifice which corpse? ");
+ constexpr auto s = _("捧げられる死体を持っていない。", "You have nothing to sacrifice.");
+ short i_idx;
+ const auto *o_ptr = choose_object(player_ptr, &i_idx, q, s, (USE_INVEN | USE_FLOOR), FuncItemTester(&ItemEntity::is_offerable));
+ if (!o_ptr) {