diff options
author | Bardur Arantsson <bardur@scientician.net> | 2018-03-25 20:07:30 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2018-03-25 20:07:30 +0200 |
commit | 45651c61e35ee203c434601ace5e95ccd5474375 (patch) | |
tree | c52f30588611a72deebd8f7f83199d1b0a644b5e /src/spells6.cc | |
parent | 73238d2c617be1600bbb067e0d0bd388488f68d3 (diff) |
Add object_type->k_ptr to point directly to the object_kind
The idea is to eventually migrate off k_idx completely, but there are
still a couple of uses left.
Diffstat (limited to 'src/spells6.cc')
-rw-r--r-- | src/spells6.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spells6.cc b/src/spells6.cc index 555f252f..37d251a6 100644 --- a/src/spells6.cc +++ b/src/spells6.cc @@ -146,7 +146,7 @@ static bool_ geomancy_depends_satisfied() o_ptr = get_object(INVEN_WIELD); return ((o_ptr != NULL) && - (o_ptr->k_idx > 0) && + (o_ptr->k_ptr) && (o_ptr->tval == TV_MSTAFF)); } |