summaryrefslogtreecommitdiff
path: root/src/rule_type.hpp
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-03-29 20:32:55 +0200
committerBardur Arantsson <bardur@scientician.net>2016-03-29 20:32:55 +0200
commit493333206ea94eb0592e52629a0a628fa34eb266 (patch)
tree07ca2bb9191220c6b33f8687334ff625011dd6ec /src/rule_type.hpp
parent168767170d481b9cc5fad6abe84af36e022fbf83 (diff)
Change dungeon_info_type to non-POD type
Diffstat (limited to 'src/rule_type.hpp')
-rw-r--r--src/rule_type.hpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/rule_type.hpp b/src/rule_type.hpp
index a8b35ffa..d2e510a7 100644
--- a/src/rule_type.hpp
+++ b/src/rule_type.hpp
@@ -5,18 +5,18 @@
/* Define monster generation rules */
struct rule_type
{
- byte mode; /* Mode of combination of the monster flags */
- byte percent; /* Percent of monsters affected by the rule */
+ byte mode = 0; /* Mode of combination of the monster flags */
+ byte percent = 0; /* Percent of monsters affected by the rule */
- u32b mflags1; /* The monster flags that are allowed */
- u32b mflags2;
- u32b mflags3;
- u32b mflags4;
- u32b mflags5;
- u32b mflags6;
- u32b mflags7;
- u32b mflags8;
- u32b mflags9;
+ u32b mflags1 = 0; /* The monster flags that are allowed */
+ u32b mflags2 = 0;
+ u32b mflags3 = 0;
+ u32b mflags4 = 0;
+ u32b mflags5 = 0;
+ u32b mflags6 = 0;
+ u32b mflags7 = 0;
+ u32b mflags8 = 0;
+ u32b mflags9 = 0;
- char r_char[5]; /* Monster race allowed */
+ char r_char[5] = { 0 }; /* Monster race allowed */
};