summaryrefslogtreecommitdiff
path: root/src/spells4.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-03-22 19:05:43 +0100
committerBardur Arantsson <bardur@scientician.net>2015-03-22 19:05:43 +0100
commit5d2af4a03a953e3891dae144076f8416faa5d8fd (patch)
tree1b93667bcb575cdcfccc57801863b59f05eaad27 /src/spells4.cc
parent97c42872e9da98a7aa4a1d5fe70bfc1e8adfa68c (diff)
Limit is_spell_ok() parameter to pval instead of object_type
Diffstat (limited to 'src/spells4.cc')
-rw-r--r--src/spells4.cc2
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;