summaryrefslogtreecommitdiff
path: root/src/object1.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
commitb9fca0267b1d6a32d57e1fb4387f52c19d1c3fa6 (patch)
treed8c7c6c1df4b2ead1ca4cf200b771245bcd7d3ca /src/object1.cc
parent0c2f30b56c221a826ba64f0ec864c29d0f717644 (diff)
Move f_info into GameEditData
Diffstat (limited to 'src/object1.cc')
-rw-r--r--src/object1.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/object1.cc b/src/object1.cc
index 466488fe..c10a52f9 100644
--- a/src/object1.cc
+++ b/src/object1.cc
@@ -637,17 +637,15 @@ void reset_visuals(void)
auto &race_mod_info = game->edit_data.race_mod_info;
auto &re_info = game->edit_data.re_info;
auto &r_info = game->edit_data.r_info;
+ auto &f_info = game->edit_data.f_info;
int i;
/* Extract some info about terrain features */
- for (i = 0; i < max_f_idx; i++)
+ for (auto &f_ref: f_info)
{
- feature_type *f_ptr = &f_info[i];
-
- /* Assume we will use the underlying values */
- f_ptr->x_attr = f_ptr->d_attr;
- f_ptr->x_char = f_ptr->d_char;
+ f_ref.x_attr = f_ref.d_attr;
+ f_ref.x_char = f_ref.d_char;
}
/* Extract default attr/char code for stores */