diff options
Diffstat (limited to 'src/cmd2.cc')
-rw-r--r-- | src/cmd2.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/cmd2.cc b/src/cmd2.cc index 261207d4..e0a1bb08 100644 --- a/src/cmd2.cc +++ b/src/cmd2.cc @@ -5115,13 +5115,10 @@ void do_cmd_give() if (!get_item(&item, q, s, USE_INVEN)) return; /* Process hooks if there are any */ - if (!process_hooks(HOOK_GIVE, "(d,d)", c_ptr->m_idx, item)) + hook_give_in in = { c_ptr->m_idx, item }; + if (!process_hooks_new(HOOK_GIVE, &in, NULL)) { - hook_give_in in = { c_ptr->m_idx, item }; - if (!process_hooks_new(HOOK_GIVE, &in, NULL)) - { - msg_print("The monster does not want your item."); - } + msg_print("The monster does not want your item."); } /* Take a turn, even if the offer is declined */ |