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 | 57bb453a15034c67d04496360b306a5f3bfd0bf2 (patch) | |
tree | 091141ca5dbbcd5daa68cc02d2df9926eaadbc35 /src/birth.cc | |
parent | 1bbed63b66c0f69809e698576a51501150f06bba (diff) |
Move a_info into GameEditData
Diffstat (limited to 'src/birth.cc')
-rw-r--r-- | src/birth.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/birth.cc b/src/birth.cc index 65f6389e..63560757 100644 --- a/src/birth.cc +++ b/src/birth.cc @@ -722,6 +722,7 @@ static void player_wipe(void) auto const &d_info = game->edit_data.d_info; auto &r_info = game->edit_data.r_info; auto &k_info = game->edit_data.k_info; + auto &a_info = game->edit_data.a_info; /* Wipe special levels */ wipe_saved(); @@ -784,10 +785,9 @@ static void player_wipe(void) init_randart(); /* Start with no artifacts made yet */ - for (std::size_t i = 0; i < max_a_idx; i++) + for (auto &a_ref: a_info) { - artifact_type *a_ptr = &a_info[i]; - a_ptr->cur_num = 0; + a_ref.cur_num = 0; } /* Reset the "objects" */ |