diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-12-11 08:09:30 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-12-11 08:09:30 +0100 |
commit | 00be445e9127922933dae91a3d68660a57f53c5b (patch) | |
tree | a9ce274cb7cdba65e81994e719a8a40a8057d38e /src/modules.cc | |
parent | f88c896138589fd2328002a7a4f097c582f79f9b (diff) |
Refactor race_info_idx() to avoid "invisible" static pointers
Diffstat (limited to 'src/modules.cc')
-rw-r--r-- | src/modules.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules.cc b/src/modules.cc index 611afe63..c5d065f4 100644 --- a/src/modules.cc +++ b/src/modules.cc @@ -776,7 +776,7 @@ static bool_ theme_push_past(void *data, void *in_, void *out_) if (c_ptr->m_idx > 0) { monster_type *m_ptr = &m_list[c_ptr->m_idx]; - monster_race *mr_ptr = race_inf(m_ptr); + auto const mr_ptr = m_ptr->race(); if (m_ptr->status >= MSTATUS_NEUTRAL) { |