summaryrefslogtreecommitdiff
path: root/src/monster_race.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_race.hpp
parent4d68cfb67dbd5e3c343fe21f118d9dbb21a18c61 (diff)
Give monster_blow default values
Diffstat (limited to 'src/monster_race.hpp')
-rw-r--r--src/monster_race.hpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/monster_race.hpp b/src/monster_race.hpp
index 1cb2742a..9fa9f590 100644
--- a/src/monster_race.hpp
+++ b/src/monster_race.hpp
@@ -5,6 +5,8 @@
#include "monster_blow.hpp"
#include "obj_theme.hpp"
+#include <array>
+
/**
* Monster race descriptors and runtime data, including racial memories.
*
@@ -55,13 +57,7 @@ struct monster_race
u32b flags8 = 0; /* Flags 8 (wilderness info) */
u32b flags9 = 0; /* Flags 9 (drops info) */
-
- 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 body_parts[BODY_MAX] = { 0 }; /* To help to decide what to use when body changing */