diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:11:55 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:11:55 +0100 |
commit | a53ffb9d26322296b64f23fe0ae72a245802a9b0 (patch) | |
tree | dfedb82c898f7f6ee18ee9842614366d0820182c /src/spells6.cc | |
parent | 5db9e06833d5a98ab3e9fefc2eb2de6680d4c59b (diff) |
Change get_level_school() to use direct spell_type pointer instead of index
Diffstat (limited to 'src/spells6.cc')
-rw-r--r-- | src/spells6.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/spells6.cc b/src/spells6.cc index dd3e1d8b..27e3925f 100644 --- a/src/spells6.cc +++ b/src/spells6.cc @@ -229,10 +229,8 @@ static bool_ get_level_school_callback(void *data_, int school_idx) return TRUE; } -void get_level_school(s32b spell_idx, s32b max, s32b min, s32b *level, bool_ *na) +void get_level_school(spell_type *spell, s32b max, s32b min, s32b *level, bool_ *na) { - spell_type *spell = spell_at(spell_idx); - assert(level != NULL); assert(na != NULL); |