summaryrefslogtreecommitdiff
path: root/src/spells4.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:55 +0100
committerBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:55 +0100
commita53ffb9d26322296b64f23fe0ae72a245802a9b0 (patch)
treedfedb82c898f7f6ee18ee9842614366d0820182c /src/spells4.cc
parent5db9e06833d5a98ab3e9fefc2eb2de6680d4c59b (diff)
Change get_level_school() to use direct spell_type pointer instead of index
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 0e97c0f0..31811449 100644
--- a/src/spells4.cc
+++ b/src/spells4.cc
@@ -431,7 +431,7 @@ int print_spell(cptr label_, byte color, int y, s32b s)
char level_str[8] = "n/a";
char buf[128];
- get_level_school(s, 50, -50, &level, &na);
+ get_level_school(spell, 50, -50, &level, &na);
spell_school_name(sch_str, spell);
if (!na)