summaryrefslogtreecommitdiff
path: root/src/monster_ego.hpp
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-06-20 22:49:05 +0200
committerBardur Arantsson <bardur@scientician.net>2016-06-20 22:49:05 +0200
commitf693888666c64c75a636be3504e6decb55f2865b (patch)
tree230f7160eb3c97b49c5276c9e800cf31fc3819ce /src/monster_ego.hpp
parent4d68cfb67dbd5e3c343fe21f118d9dbb21a18c61 (diff)
Give monster_blow default values
Diffstat (limited to 'src/monster_ego.hpp')
-rw-r--r--src/monster_ego.hpp9
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 },