diff options
Diffstat (limited to 'src/q_bounty.cc')
-rw-r--r-- | src/q_bounty.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/q_bounty.cc b/src/q_bounty.cc index e0a7ae2a..1bdb1fe6 100644 --- a/src/q_bounty.cc +++ b/src/q_bounty.cc @@ -22,7 +22,9 @@ static bool_ lua_mon_hook_bounty(int r_idx) { - monster_race* r_ptr = &r_info[r_idx]; + auto const &r_info = game->edit_data.r_info; + + auto r_ptr = &r_info[r_idx]; /* Reject uniques */ if (r_ptr->flags & RF_UNIQUE) return (FALSE); |