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:38 +0200 |
commit | c25b265c056a4512b0fb0e1789927e6c4b7b32cf (patch) | |
tree | 42bc01558926aba40452ef49215399eabb25228d /src/birth.cc | |
parent | 89e75b855662b1dcc86a6dc3789fa496aafbb0a2 (diff) |
Move t_info into GameEditData
Diffstat (limited to 'src/birth.cc')
-rw-r--r-- | src/birth.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/birth.cc b/src/birth.cc index 63560757..b18a4b9a 100644 --- a/src/birth.cc +++ b/src/birth.cc @@ -723,6 +723,7 @@ static void player_wipe(void) auto &r_info = game->edit_data.r_info; auto &k_info = game->edit_data.k_info; auto &a_info = game->edit_data.a_info; + auto &t_info = game->edit_data.t_info; /* Wipe special levels */ wipe_saved(); @@ -882,10 +883,10 @@ static void player_wipe(void) } /* Wipe the known traps list */ - for (std::size_t i = 0; i < max_t_idx; i++) + for (auto &t_ref: t_info) { - t_info[i].known = 0; - t_info[i].ident = FALSE; + t_ref.known = 0; + t_ref.ident = FALSE; } /* Reset wild_mode to FALSE */ @@ -985,6 +986,8 @@ static void player_outfit_spellbook(cptr spell_name) */ static void player_outfit(void) { + auto &t_info = game->edit_data.t_info; + // Shorthand names for convenience cptr class_name = spp_ptr->title; auto const &subrace_name = rmp_ptr->title; |