diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-03-04 17:47:43 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-03-29 20:41:39 +0200 |
commit | 4d6770696a172bae4ef18a00cb1e59f06e641faf (patch) | |
tree | 6b6475485d731f4ad2a54c84dacfaafec347f8a9 /src/q_ultrag.c | |
parent | 120fed37d8974553e25e5c83ba74c1bb08d71404 (diff) |
Refactor: Remove duplicate code for accessing inventory/floor object
Diffstat (limited to 'src/q_ultrag.c')
-rw-r--r-- | src/q_ultrag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/q_ultrag.c b/src/q_ultrag.c index 12df5efb..a5a09f2d 100644 --- a/src/q_ultrag.c +++ b/src/q_ultrag.c @@ -109,7 +109,7 @@ bool_ quest_ultra_good_stair_hook(char *fmt) for (i = INVEN_WIELD; i < INVEN_TOTAL; i++) { u32b f1, f2, f3, f4, f5, esp; - object_type *o_ptr = &p_ptr->inventory[i]; + object_type *o_ptr = get_object(i); if (!o_ptr->k_idx) continue; |