summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/hiscores.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/hiscores.cc')
-rw-r--r--crawl-ref/source/hiscores.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/hiscores.cc b/crawl-ref/source/hiscores.cc
index 3d2f7dc281..6267202d22 100644
--- a/crawl-ref/source/hiscores.cc
+++ b/crawl-ref/source/hiscores.cc
@@ -972,8 +972,7 @@ void scorefile_entry::init()
num_diff_runes = 0;
FixedVector< int, NUM_RUNE_TYPES > rune_array;
- for (int i = 0; i < NUM_RUNE_TYPES; i++)
- rune_array[i] = 0;
+ rune_array.init(0);
// inventory value is only calculated for winners
const bool calc_item_values = (death_type == KILLED_BY_WINNING);
@@ -1003,9 +1002,10 @@ void scorefile_entry::init()
continue;
}
- rune_array[ you.inv[d].plus ] += you.inv[d].quantity;
if (rune_array[ you.inv[d].plus ] == 0)
num_diff_runes++;
+
+ rune_array[ you.inv[d].plus ] += you.inv[d].quantity;
}
}
}