summaryrefslogtreecommitdiff
path: root/src/random_spell.hpp
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-10-05 18:45:08 +0200
committerBardur Arantsson <bardur@scientician.net>2016-10-05 18:45:08 +0200
commita82be561ad77d615f619ed16614c3c09fdc9ba2f (patch)
tree2ae6cf87bf0e9b89c40cb9146a435e7e02a701d8 /src/random_spell.hpp
parent44465e6fdbeab3b90b0bef9d33adac3514b48ffc (diff)
Move random_spells into player_type
# Conflicts: # src/loadsave.cc
Diffstat (limited to 'src/random_spell.hpp')
-rw-r--r--src/random_spell.hpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/random_spell.hpp b/src/random_spell.hpp
index 2c814c9f..2ed71096 100644
--- a/src/random_spell.hpp
+++ b/src/random_spell.hpp
@@ -7,15 +7,15 @@
*/
struct random_spell
{
- char desc[30]; /* Desc of the spell */
- char name[30]; /* Name of the spell */
- s16b mana; /* Mana cost */
- s16b fail; /* Failure rate */
- u32b proj_flags; /* Project function flags */
- byte GF; /* Type of the projection */
- byte radius;
- byte dam_sides;
- byte dam_dice;
- byte level; /* Level needed */
- bool untried; /* Is the spell was tried? */
+ char desc[30] = { }; /* Desc of the spell */
+ char name[30] = { }; /* Name of the spell */
+ s16b mana = 0; /* Mana cost */
+ s16b fail = 0; /* Failure rate */
+ u32b proj_flags = 0; /* Project function flags */
+ byte GF = 0; /* Type of the projection */
+ byte radius = 0;
+ byte dam_sides = 0;
+ byte dam_dice = 0;
+ byte level = 0; /* Level needed */
+ bool untried = true; /* Is the spell was tried? */
};