diff options
author | Bardur Arantsson <bardur@scientician.net> | 2018-03-25 20:07:30 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2018-03-25 20:07:30 +0200 |
commit | 3a34d1b2a24c055d42f27b7844c4d20ec8c20af7 (patch) | |
tree | 21bf15d76a97b14c594c579db20dde4376b7769b /src/birth.cc | |
parent | 305927503332cc1ea4bcb838f53e1401499a4ee2 (diff) |
Refactor powers to an associative container
This affords more flexibility when adding/removing powers.
Diffstat (limited to 'src/birth.cc')
-rw-r--r-- | src/birth.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/birth.cc b/src/birth.cc index 8d27c4e2..40e3eeea 100644 --- a/src/birth.cc +++ b/src/birth.cc @@ -723,10 +723,7 @@ static void player_wipe() p_ptr->allow_one_death = 0; /* Wipe the power list */ - for (std::size_t i = 0; i < POWER_MAX; i++) - { - p_ptr->powers_mod[i] = 0; - } + p_ptr->powers_mod.clear(); /* No companions killed */ p_ptr->companion_killed = 0; |