From 1eb13ec5a357c43c5366c276dce87fba6f713fc6 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Tue, 13 Jun 2017 18:24:42 +0200 Subject: Move alloc_* tables to Game struct We also change the arrays to std::vector<> --- src/xtra1.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/xtra1.cc') 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]; -- cgit v1.2.3