summaryrefslogtreecommitdiff
path: root/src/birth.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-10-05 18:45:08 +0200
committerBardur Arantsson <bardur@scientician.net>2016-10-05 18:49:38 +0200
commit1bbed63b66c0f69809e698576a51501150f06bba (patch)
treef458361c0c2e7dac2502b1aace63d83d5dbd15b4 /src/birth.cc
parentb9fca0267b1d6a32d57e1fb4387f52c19d1c3fa6 (diff)
Move k_info into GameEditData
Diffstat (limited to 'src/birth.cc')
-rw-r--r--src/birth.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/birth.cc b/src/birth.cc
index 083fe06c..65f6389e 100644
--- a/src/birth.cc
+++ b/src/birth.cc
@@ -721,6 +721,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;
/* Wipe special levels */
wipe_saved();
@@ -790,18 +791,16 @@ static void player_wipe(void)
}
/* Reset the "objects" */
- for (std::size_t i = 1; i < max_k_idx; i++)
+ for (auto &k_ref: k_info)
{
- object_kind *k_ptr = &k_info[i];
-
/* Reset "tried" */
- k_ptr->tried = FALSE;
+ k_ref.tried = FALSE;
/* Reset "aware" */
- k_ptr->aware = FALSE;
+ k_ref.aware = FALSE;
/* Reset "artifact" */
- k_ptr->artifact = 0;
+ k_ref.artifact = 0;
}