summaryrefslogtreecommitdiff
path: root/src/xtra1.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-10-05 18:45:08 +0200
committerBardur Arantsson <bardur@scientician.net>2016-10-05 18:49:38 +0200
commit1bbed63b66c0f69809e698576a51501150f06bba (patch)
treef458361c0c2e7dac2502b1aace63d83d5dbd15b4 /src/xtra1.cc
parentb9fca0267b1d6a32d57e1fb4387f52c19d1c3fa6 (diff)
Move k_info into GameEditData
Diffstat (limited to 'src/xtra1.cc')
-rw-r--r--src/xtra1.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xtra1.cc b/src/xtra1.cc
index 80cbe09e..27bdce71 100644
--- a/src/xtra1.cc
+++ b/src/xtra1.cc
@@ -4415,6 +4415,8 @@ static int get_artifact_idx(int level)
/* Chose a fate */
void gain_fate(byte fate)
{
+ auto const &k_info = game->edit_data.k_info;
+
int i;
int level;
@@ -4485,7 +4487,6 @@ void gain_fate(byte fate)
{
while (TRUE)
{
- object_kind *k_ptr;
obj_theme theme;
/* No themes */
@@ -4506,7 +4507,7 @@ void gain_fate(byte fate)
/* Invalidate the cached allocation table */
alloc_kind_table_valid = FALSE;
- k_ptr = &k_info[fates[i].o_idx];
+ auto k_ptr = &k_info[fates[i].o_idx];
if (!(k_ptr->flags & TR_INSTA_ART) && !(k_ptr->flags & TR_NORM_ART)) break;
}