From 0c2f30b56c221a826ba64f0ec864c29d0f717644 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Wed, 5 Oct 2016 18:45:08 +0200 Subject: Move r_info into GameEditData --- src/birth.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/birth.cc') diff --git a/src/birth.cc b/src/birth.cc index fe814978..083fe06c 100644 --- a/src/birth.cc +++ b/src/birth.cc @@ -720,6 +720,7 @@ static void birth_put_stats(void) static void player_wipe(void) { auto const &d_info = game->edit_data.d_info; + auto &r_info = game->edit_data.r_info; /* Wipe special levels */ wipe_saved(); @@ -805,9 +806,9 @@ static void player_wipe(void) /* Reset the "monsters" */ - for (std::size_t i = 1; i < max_r_idx; i++) + for (auto &r_ref: r_info) { - monster_race *r_ptr = &r_info[i]; + auto r_ptr = &r_ref; /* Hack -- Reset the counter */ r_ptr->cur_num = 0; -- cgit v1.2.3