diff options
Diffstat (limited to 'src/wizard2.c')
-rw-r--r-- | src/wizard2.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/wizard2.c b/src/wizard2.c index 824bc724..f606fd72 100644 --- a/src/wizard2.c +++ b/src/wizard2.c @@ -1157,17 +1157,8 @@ static void do_cmd_wiz_play(void) s = "You have nothing to play with."; if (!get_item(&item, q, s, (USE_EQUIP | USE_INVEN | USE_FLOOR))) return; - /* Get the item (in the pack) */ - if (item >= 0) - { - o_ptr = &p_ptr->inventory[item]; - } - - /* Get the item (on the floor) */ - else - { - o_ptr = &o_list[0 - item]; - } + /* Get the item */ + o_ptr = get_object(item); /* The item was not changed */ |