summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-07-07 19:59:12 +0200
committerGitHub <noreply@github.com>2018-07-07 19:59:12 +0200
commitf341c57df75c327736792c1b1e98dd68d7033ac9 (patch)
tree6473aa2be727ada7cca6647cc229e4fce95108a4 /src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
parenteed4e9bb3a466cfe32bdb72df12c7ad2ceb0dd79 (diff)
parentb03d9630d877c2ea9e3197e5e22985bac58c82e9 (diff)
downloadhercules-f341c57df75c327736792c1b1e98dd68d7033ac9.tar.gz
hercules-f341c57df75c327736792c1b1e98dd68d7033ac9.tar.bz2
hercules-f341c57df75c327736792c1b1e98dd68d7033ac9.tar.xz
hercules-f341c57df75c327736792c1b1e98dd68d7033ac9.zip
Merge pull request #2124 from MishimaHaruna/guild-add-member-fix
Guild add member fix
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking_char.Hooks.inc')
-rw-r--r--src/plugins/HPMHooking/HPMHooking_char.Hooks.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
index 765044b5b..ad57bce86 100644
--- a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
@@ -6750,15 +6750,15 @@ struct guild* HP_inter_guild_create(const char *name, const struct guild_member
}
return retVal___;
}
-bool HP_inter_guild_add_member(int guild_id, const struct guild_member *member) {
+bool HP_inter_guild_add_member(int guild_id, const struct guild_member *member, int map_fd) {
int hIndex = 0;
bool retVal___ = false;
if (HPMHooks.count.HP_inter_guild_add_member_pre > 0) {
- bool (*preHookFunc) (int *guild_id, const struct guild_member **member);
+ bool (*preHookFunc) (int *guild_id, const struct guild_member **member, int *map_fd);
*HPMforce_return = false;
for (hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_add_member_pre; hIndex++) {
preHookFunc = HPMHooks.list.HP_inter_guild_add_member_pre[hIndex].func;
- retVal___ = preHookFunc(&guild_id, &member);
+ retVal___ = preHookFunc(&guild_id, &member, &map_fd);
}
if (*HPMforce_return) {
*HPMforce_return = false;
@@ -6766,13 +6766,13 @@ bool HP_inter_guild_add_member(int guild_id, const struct guild_member *member)
}
}
{
- retVal___ = HPMHooks.source.inter_guild.add_member(guild_id, member);
+ retVal___ = HPMHooks.source.inter_guild.add_member(guild_id, member, map_fd);
}
if (HPMHooks.count.HP_inter_guild_add_member_post > 0) {
- bool (*postHookFunc) (bool retVal___, int guild_id, const struct guild_member *member);
+ bool (*postHookFunc) (bool retVal___, int guild_id, const struct guild_member *member, int map_fd);
for (hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_add_member_post; hIndex++) {
postHookFunc = HPMHooks.list.HP_inter_guild_add_member_post[hIndex].func;
- retVal___ = postHookFunc(retVal___, guild_id, member);
+ retVal___ = postHookFunc(retVal___, guild_id, member, map_fd);
}
}
return retVal___;