summaryrefslogtreecommitdiff
path: root/src/melee2.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2014-12-18 20:38:17 +0100
committerBardur Arantsson <bardur@scientician.net>2014-12-23 12:07:54 +0100
commit9a10050acb1c6398eedfe9c20611ac31f17802d5 (patch)
tree7ab66b6577b1175cd6991ea071d2d5c6ab4c3618 /src/melee2.cc
parentdd5f6f4691b9975c7087a9bb6f92befd59e5d795 (diff)
Update HOOK_MON_SPEAK to new-style hook
Diffstat (limited to 'src/melee2.cc')
-rw-r--r--src/melee2.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/melee2.cc b/src/melee2.cc
index f35e1e80..d4f2e9ff 100644
--- a/src/melee2.cc
+++ b/src/melee2.cc
@@ -6423,7 +6423,8 @@ static void process_monster(int m_idx, bool_ is_frien)
/* Try for the unique's lines in "monspeak.txt" first. */
/* 0 is SUCCESS, of course.... */
- if (!process_hooks(HOOK_MON_SPEAK, "(d,s)", m_idx, m_name))
+ struct hook_mon_speak_in in = { m_idx, m_name };
+ if (!process_hooks_new(HOOK_MON_SPEAK, &in, NULL))
{
if (get_xtra_line("monspeak.txt", m_ptr, monmessage) != 0)
{