diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-12-19 01:02:33 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-12-23 12:07:54 +0100 |
commit | 0ff3645a99ce2ba66e8309c0d34d7a7b2ad5ef51 (patch) | |
tree | 5ecec4265dbc78ed514843d4cc9b6f8b3c85ba97 /src/xtra2.cc | |
parent | 5404247f5adcb64a67bedf8b6442c023c3802a8f (diff) |
Update HOOK_MONSTER_DEATH to new-style hook
Diffstat (limited to 'src/xtra2.cc')
-rw-r--r-- | src/xtra2.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xtra2.cc b/src/xtra2.cc index d1d3e4ac..46c04453 100644 --- a/src/xtra2.cc +++ b/src/xtra2.cc @@ -2613,7 +2613,10 @@ void monster_death(int m_idx) x = m_ptr->fx; /* Process the appropriate hooks */ - process_hooks(HOOK_MONSTER_DEATH, "(d)", m_idx); + { + struct hook_monster_death_in in = { m_idx }; + process_hooks_new(HOOK_MONSTER_DEATH, &in, NULL); + } /* Per-god processing */ monster_death_gods(m_idx, m_ptr); |