summaryrefslogtreecommitdiff
path: root/src/q_wolves.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/q_wolves.cc')
-rw-r--r--src/q_wolves.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/q_wolves.cc b/src/q_wolves.cc
index ef3c22ec..1afa0fb8 100644
--- a/src/q_wolves.cc
+++ b/src/q_wolves.cc
@@ -104,11 +104,10 @@ static bool_ quest_wolves_death_hook(void *, void *, void *)
return FALSE;
}
-static bool_ quest_wolves_finish_hook(const char *fmt)
+static bool_ quest_wolves_finish_hook(void *, void *in_, void *)
{
- s32b q_idx;
-
- q_idx = get_next_arg(fmt);
+ struct hook_quest_finish_in *in = static_cast<struct hook_quest_finish_in *>(in_);
+ s32b q_idx = in->q_idx;
if (q_idx != QUEST_WOLVES) return FALSE;
@@ -126,8 +125,8 @@ bool_ quest_wolves_init_hook(int q_idx)
if ((cquest.status >= QUEST_STATUS_UNTAKEN) && (cquest.status < QUEST_STATUS_FINISHED))
{
add_hook_new(HOOK_MONSTER_DEATH, quest_wolves_death_hook, "wolves_monster_death", NULL);
- add_hook (HOOK_QUEST_FINISH, quest_wolves_finish_hook, "wolves_finish");
- add_hook_new(HOOK_GEN_QUEST, quest_wolves_gen_hook, "wolves_geb", NULL);
+ add_hook_new(HOOK_QUEST_FINISH, quest_wolves_finish_hook, "wolves_finish", NULL);
+ add_hook_new(HOOK_GEN_QUEST, quest_wolves_gen_hook, "wolves_geb", NULL);
}
return (FALSE);
}