diff options
author | Bardur Arantsson <bardur@scientician.net> | 2017-06-13 18:24:42 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2017-06-13 18:24:42 +0200 |
commit | 1eb13ec5a357c43c5366c276dce87fba6f713fc6 (patch) | |
tree | 889f1c7f7a6a73627566e44777002be8daa29d7b /src/alloc_entry.hpp | |
parent | ff8894cc6bec9eeae81b222ec8116e3bb8793174 (diff) |
Move alloc_* tables to Game struct
We also change the arrays to std::vector<>
Diffstat (limited to 'src/alloc_entry.hpp')
-rw-r--r-- | src/alloc_entry.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/alloc_entry.hpp b/src/alloc_entry.hpp index 41ec3b66..5e0e547f 100644 --- a/src/alloc_entry.hpp +++ b/src/alloc_entry.hpp @@ -11,10 +11,10 @@ */ struct alloc_entry { - s16b index; /* The actual index */ + s16b index = -1; /* The actual index */ - byte level; /* Base dungeon level */ - byte prob1; /* Probability, pass 1 */ - byte prob2; /* Probability, pass 2 */ - byte prob3; /* Probability, pass 3 */ + byte level = 0; /* Base dungeon level */ + byte prob1 = 0; /* Probability, pass 1 */ + byte prob2 = 0; /* Probability, pass 2 */ + byte prob3 = 0; /* Probability, pass 3 */ }; |