diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-10-05 18:45:08 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-10-05 18:49:37 +0200 |
commit | 765e1a3dc7abce3a849b8d1f124ada7a6984154a (patch) | |
tree | 0a4530d2091f05b70638f2eb833ae9b7238e4927 /src/spells6.cc | |
parent | 5869c5622e4345ffd50e0713d188f2d283b61caa (diff) |
Move s_{info,descriptors} to Game/GameEdtiData
Diffstat (limited to 'src/spells6.cc')
-rw-r--r-- | src/spells6.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/spells6.cc b/src/spells6.cc index a4564ae3..555f252f 100644 --- a/src/spells6.cc +++ b/src/spells6.cc @@ -1,5 +1,6 @@ #include "spells6.hpp" +#include "game.hpp" #include "gods.hpp" #include "lua_bind.hpp" #include "object2.hpp" @@ -151,6 +152,8 @@ static bool_ geomancy_depends_satisfied() long get_provided_levels(school_type *school) { + auto const &s_info = game->s_info; + for (auto school_provider: school->providers->v) { if (school_provider.deity_idx == p_ptr->pgod) @@ -171,6 +174,8 @@ struct get_level_school_callback_data { static bool get_level_school_callback(struct get_level_school_callback_data *data, int school_idx) { + auto const &s_info = game->s_info; + school_type *school = school_at(school_idx); long r = 0, s = 0, p = 0, ok = 0; |