summaryrefslogtreecommitdiff
path: root/src/xtra1.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2017-06-13 18:24:42 +0200
committerBardur Arantsson <bardur@scientician.net>2017-06-13 18:24:42 +0200
commit1eb13ec5a357c43c5366c276dce87fba6f713fc6 (patch)
tree889f1c7f7a6a73627566e44777002be8daa29d7b /src/xtra1.cc
parentff8894cc6bec9eeae81b222ec8116e3bb8793174 (diff)
Move alloc_* tables to Game struct
We also change the arrays to std::vector<>
Diffstat (limited to 'src/xtra1.cc')
-rw-r--r--src/xtra1.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xtra1.cc b/src/xtra1.cc
index dcfb4b3d..2da31dbb 100644
--- a/src/xtra1.cc
+++ b/src/xtra1.cc
@@ -4220,6 +4220,7 @@ static int get_artifact_idx(int level)
void gain_fate(byte fate)
{
auto const &k_info = game->edit_data.k_info;
+ auto &alloc = game->alloc;
int i;
int level;
@@ -4309,7 +4310,7 @@ void gain_fate(byte fate)
fates[i].o_idx = get_obj_num(max_dlv[dungeon_type] + randint(10));
/* Invalidate the cached allocation table */
- alloc_kind_table_valid = FALSE;
+ alloc.kind_table_valid = false;
auto k_ptr = &k_info[fates[i].o_idx];