summaryrefslogtreecommitdiff
path: root/src/birth.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2018-03-25 20:07:30 +0200
committerBardur Arantsson <bardur@scientician.net>2018-03-25 20:07:30 +0200
commit45651c61e35ee203c434601ace5e95ccd5474375 (patch)
treec52f30588611a72deebd8f7f83199d1b0a644b5e /src/birth.cc
parent73238d2c617be1600bbb067e0d0bd388488f68d3 (diff)
Add object_type->k_ptr to point directly to the object_kind
The idea is to eventually migrate off k_idx completely, but there are still a couple of uses left.
Diffstat (limited to 'src/birth.cc')
-rw-r--r--src/birth.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/birth.cc b/src/birth.cc
index ab3503d5..81ee38c4 100644
--- a/src/birth.cc
+++ b/src/birth.cc
@@ -632,10 +632,10 @@ static void player_wipe()
/* Reset the "objects" */
for (auto &k_entry: k_info)
{
- auto &k_ref = k_entry.second;
- k_ref.tried = FALSE;
- k_ref.aware = FALSE;
- k_ref.artifact = 0;
+ auto k_ptr = k_entry.second;
+ k_ptr->tried = FALSE;
+ k_ptr->aware = FALSE;
+ k_ptr->artifact = 0;
}