diff options
author | Bardur Arantsson <bardur@scientician.net> | 2019-02-15 19:20:25 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2019-02-15 19:20:25 +0100 |
commit | 993edef8ee17aafc5162cc8cbfd319b113585105 (patch) | |
tree | 545112d64dd3263213f9ec9b3ff3e28a2caef29a /src/xtra1.cc | |
parent | 40b1ff474224dce87eaace57d5d551c98856ad7d (diff) |
Replace uses of bool_ for get_obj_num_hook()
We refactor the function to just take a direct pointer instead of
indirecting via the k_idx -- it's simpler and less code.
Diffstat (limited to 'src/xtra1.cc')
-rw-r--r-- | src/xtra1.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xtra1.cc b/src/xtra1.cc index 3e139ba1..a13361a7 100644 --- a/src/xtra1.cc +++ b/src/xtra1.cc @@ -4348,7 +4348,7 @@ void gain_fate(byte fate) init_match_theme(theme); /* Apply restriction */ - get_obj_num_hook = kind_is_legal; + get_object_hook = kind_is_legal; /* Rebuild allocation table */ get_obj_num_prep(); |