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/monster3.cc | |
parent | f88c896138589fd2328002a7a4f097c582f79f9b (diff) |
Refactor race_info_idx() to avoid "invisible" static pointers
Diffstat (limited to 'src/monster3.cc')
-rw-r--r-- | src/monster3.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/monster3.cc b/src/monster3.cc index e7e8e6da..915a856d 100644 --- a/src/monster3.cc +++ b/src/monster3.cc @@ -72,7 +72,7 @@ bool_ is_enemy(monster_type *m_ptr, monster_type *t_ptr) bool_ change_side(monster_type *m_ptr) { - monster_race *r_ptr = race_inf(m_ptr); + auto const r_ptr = m_ptr->race(); /* neutrals and companions */ switch (m_ptr->status) |