diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-06-20 22:49:05 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-06-20 22:49:05 +0200 |
commit | f693888666c64c75a636be3504e6decb55f2865b (patch) | |
tree | 230f7160eb3c97b49c5276c9e800cf31fc3819ce /src/monster_ego.hpp | |
parent | 4d68cfb67dbd5e3c343fe21f118d9dbb21a18c61 (diff) |
Give monster_blow default values
Diffstat (limited to 'src/monster_ego.hpp')
-rw-r--r-- | src/monster_ego.hpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/monster_ego.hpp b/src/monster_ego.hpp index 873c642f..1154c537 100644 --- a/src/monster_ego.hpp +++ b/src/monster_ego.hpp @@ -3,6 +3,8 @@ #include "h-basic.h" #include "monster_blow.hpp" +#include <array> + /** * Monster ego descriptors. */ @@ -11,12 +13,7 @@ struct monster_ego const char *name = nullptr; /* Name */ bool_ before = false; /* Display ego before or after */ - monster_blow blow[4] = { /* Up to four blows per round */ - { 0, 0, 0, 0 }, - { 0, 0, 0, 0 }, - { 0, 0, 0, 0 }, - { 0, 0, 0, 0 }, - }; + std::array<monster_blow, 4> blow { }; /* Up to four blows per round */ byte blowm[4][2] = { { 0, 0 }, { 0, 0 }, |