diff options
Diffstat (limited to 'src/randart.c')
-rw-r--r-- | src/randart.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/randart.c b/src/randart.c index 70d350ad..298ee83a 100644 --- a/src/randart.c +++ b/src/randart.c @@ -419,18 +419,8 @@ bool_ artifact_scroll(void) s = "You have nothing to enchant."; if (!get_item(&item, q, s, (USE_EQUIP | USE_INVEN | USE_FLOOR))) return (FALSE); - /* 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); /* Description */ object_desc(o_name, o_ptr, FALSE, 0); |