diff options
Diffstat (limited to 'src/q_wolves.cc')
-rw-r--r-- | src/q_wolves.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/q_wolves.cc b/src/q_wolves.cc index 75a50aff..ef3c22ec 100644 --- a/src/q_wolves.cc +++ b/src/q_wolves.cc @@ -71,7 +71,7 @@ static bool_ quest_wolves_gen_hook(void *, void *, void *) return TRUE; } -static bool_ quest_wolves_death_hook(const char *fmt) +static bool_ quest_wolves_death_hook(void *, void *, void *) { int i, mcnt = 0; @@ -94,7 +94,7 @@ static bool_ quest_wolves_death_hook(const char *fmt) { quest[p_ptr->inside_quest].status = QUEST_STATUS_COMPLETED; - del_hook (HOOK_MONSTER_DEATH, quest_wolves_death_hook); + del_hook_new(HOOK_MONSTER_DEATH, quest_wolves_death_hook); del_hook_new(HOOK_GEN_QUEST, quest_wolves_gen_hook); process_hooks_restart = TRUE; @@ -125,7 +125,7 @@ bool_ quest_wolves_init_hook(int q_idx) { if ((cquest.status >= QUEST_STATUS_UNTAKEN) && (cquest.status < QUEST_STATUS_FINISHED)) { - add_hook (HOOK_MONSTER_DEATH, quest_wolves_death_hook, "wolves_monster_death"); + 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); } |