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/store.cc | |
parent | ff8894cc6bec9eeae81b222ec8116e3bb8793174 (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.cc | 5 |
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; |