summaryrefslogtreecommitdiff
path: root/src/traps.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-12-11 08:09:30 +0100
committerBardur Arantsson <bardur@scientician.net>2015-12-11 08:09:30 +0100
commit00be445e9127922933dae91a3d68660a57f53c5b (patch)
treea9ce274cb7cdba65e81994e719a8a40a8057d38e /src/traps.cc
parentf88c896138589fd2328002a7a4f097c582f79f9b (diff)
Refactor race_info_idx() to avoid "invisible" static pointers
Diffstat (limited to 'src/traps.cc')
-rw-r--r--src/traps.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/traps.cc b/src/traps.cc
index bc4ef99f..d1119513 100644
--- a/src/traps.cc
+++ b/src/traps.cc
@@ -217,7 +217,7 @@ static bool_ player_handle_trap_of_walls(void)
if (cv_ptr->m_idx)
{
monster_type *m_ptr = &m_list[cv_ptr->m_idx];
- monster_race *r_ptr = race_inf(m_ptr);
+ auto const r_ptr = m_ptr->race();
/* Most monsters cannot co-exist with rock */
if ((!(r_ptr->flags2 & RF2_KILL_WALL)) &&