From 0c2f30b56c221a826ba64f0ec864c29d0f717644 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Wed, 5 Oct 2016 18:45:08 +0200 Subject: Move r_info into GameEditData --- src/q_bounty.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/q_bounty.cc') 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); -- cgit v1.2.3