summaryrefslogtreecommitdiff
path: root/src/birth.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-07 16:16:17 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-07 17:49:18 +0200
commitb6c2bf9050a56841bb5a82549fd36a98b03e2f41 (patch)
tree3f5f7d75af05de6306ad7fb6ce9155a663e91c5d /src/birth.c
parent838246d8d5d9febf38452f82692b25d7dc092ef3 (diff)
Lua: Remove unnecessary dynamism from "powers" handling
Diffstat (limited to 'src/birth.c')
-rw-r--r--src/birth.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/birth.c b/src/birth.c
index f050f9d1..47b806e7 100644
--- a/src/birth.c
+++ b/src/birth.c
@@ -822,21 +822,13 @@ static void player_wipe(void)
{
int i, j;
- bool_ *powers;
-
/* Wipe special levels */
wipe_saved();
- /* Save the powers & corruptions */
- powers = p_ptr->powers;
-
/* Hack -- zero the struct */
p_ptr = WIPE(p_ptr, player_type);
- /* Restore the powers & corruptions */
- p_ptr->powers = powers;
-
/* Not dead yet */
p_ptr->lives = 0;
@@ -1039,7 +1031,7 @@ static void player_wipe(void)
p_ptr->loan = p_ptr->loan_time = 0;
/* Wipe the power list */
- for (i = 0; i < POWER_MAX_INIT; i++)
+ for (i = 0; i < POWER_MAX; i++)
{
p_ptr->powers_mod[i] = 0;
}