summaryrefslogtreecommitdiff
path: root/src/q_eol.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/q_eol.cc')
-rw-r--r--src/q_eol.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/q_eol.cc b/src/q_eol.cc
index 1c141624..4392b001 100644
--- a/src/q_eol.cc
+++ b/src/q_eol.cc
@@ -2,6 +2,7 @@
#include "cave.hpp"
#include "cave_type.hpp"
+#include "game.hpp"
#include "generate.hpp"
#include "hook_stair_in.hpp"
#include "hook_quest_finish_in.hpp"
@@ -184,8 +185,10 @@ static bool_ quest_eol_death_hook(void *, void *in_, void *)
static bool_ quest_eol_stair_hook(void *, void *in_, void *)
{
+ auto const &r_info = game->edit_data.r_info;
+
struct hook_stair_in *in = static_cast<struct hook_stair_in *>(in_);
- monster_race *r_ptr = &r_info[get_eol()];
+ auto r_ptr = &r_info[get_eol()];
if (p_ptr->inside_quest != QUEST_EOL) return FALSE;