summaryrefslogtreecommitdiff
path: root/src/store.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/store.cc
parentff8894cc6bec9eeae81b222ec8116e3bb8793174 (diff)
Move alloc_* tables to Game struct
We also change the arrays to std::vector<>
Diffstat (limited to 'src/store.cc')
-rw-r--r--src/store.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/store.cc b/src/store.cc
index fea51410..a11a3ea8 100644
--- a/src/store.cc
+++ b/src/store.cc
@@ -1191,6 +1191,7 @@ static void store_create()
{
auto const &st_info = game->edit_data.st_info;
auto const &k_info = game->edit_data.k_info;
+ auto &alloc = game->alloc;
int i = 0, tries, level = 0;
@@ -1265,7 +1266,7 @@ static void store_create()
i = get_obj_num(level);
/* Invalidate the cached allocation table */
- alloc_kind_table_valid = FALSE;
+ alloc.kind_table_valid = false;
/* Handle failure */
if (!i) continue;
@@ -1317,7 +1318,7 @@ static void store_create()
i = get_obj_num(level);
/* Invalidate the cached allocation table */
- alloc_kind_table_valid = FALSE;
+ alloc.kind_table_valid = false;
}
if (!i) continue;