diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-03-22 19:05:43 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-03-22 19:05:43 +0100 |
commit | 5d2af4a03a953e3891dae144076f8416faa5d8fd (patch) | |
tree | 1b93667bcb575cdcfccc57801863b59f05eaad27 /src/spells4.cc | |
parent | 97c42872e9da98a7aa4a1d5fe70bfc1e8adfa68c (diff) |
Limit is_spell_ok() parameter to pval instead of object_type
Diffstat (limited to 'src/spells4.cc')
-rw-r--r-- | src/spells4.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spells4.cc b/src/spells4.cc index 45eb8c15..4a952b18 100644 --- a/src/spells4.cc +++ b/src/spells4.cc @@ -463,7 +463,7 @@ int print_book(s16b sval, s32b pval, object_type *obj) bool_ is_ok; char label[8]; - is_ok = is_ok_spell(spell_idx, obj); + is_ok = is_ok_spell(spell_idx, obj->pval); if (is_ok) { color = (get_mana(spell_idx) > get_power(spell_idx)) ? TERM_ORANGE : TERM_L_GREEN; |