summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking
diff options
context:
space:
mode:
authorHercules.ws <Hercules@efficiently.awesome>2015-08-12 16:17:15 +0200
committerHerculesWSAPI <Hercules@efficiently.awesome>2015-08-12 16:17:15 +0200
commit759839dc25b4f022ebeb482822cf46cc8eebf4a1 (patch)
treee20833f564a967a4501e7454cbaad6373ca92ccb /src/plugins/HPMHooking
parent8ce961b7bfa60f447d93b604a9944d9c44e8319c (diff)
downloadhercules-759839dc25b4f022ebeb482822cf46cc8eebf4a1.tar.gz
hercules-759839dc25b4f022ebeb482822cf46cc8eebf4a1.tar.bz2
hercules-759839dc25b4f022ebeb482822cf46cc8eebf4a1.tar.xz
hercules-759839dc25b4f022ebeb482822cf46cc8eebf4a1.zip
HPM Hooks Update
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Diffstat (limited to 'src/plugins/HPMHooking')
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.Hooks.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
index 402f146ba..a6724f0f7 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
@@ -50271,14 +50271,14 @@ int HP_pc_equipitem(struct map_session_data *sd, int n, int req_pos) {
}
return retVal___;
}
-void HP_pc_equipitem_pos(struct map_session_data *sd, struct item_data *id, int pos) {
+void HP_pc_equipitem_pos(struct map_session_data *sd, struct item_data *id, int n, int pos) {
int hIndex = 0;
if( HPMHooks.count.HP_pc_equipitem_pos_pre ) {
- void (*preHookFunc) (struct map_session_data *sd, struct item_data *id, int *pos);
+ void (*preHookFunc) (struct map_session_data *sd, struct item_data *id, int *n, int *pos);
*HPMforce_return = false;
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_equipitem_pos_pre; hIndex++ ) {
preHookFunc = HPMHooks.list.HP_pc_equipitem_pos_pre[hIndex].func;
- preHookFunc(sd, id, &pos);
+ preHookFunc(sd, id, &n, &pos);
}
if( *HPMforce_return ) {
*HPMforce_return = false;
@@ -50286,13 +50286,13 @@ void HP_pc_equipitem_pos(struct map_session_data *sd, struct item_data *id, int
}
}
{
- HPMHooks.source.pc.equipitem_pos(sd, id, pos);
+ HPMHooks.source.pc.equipitem_pos(sd, id, n, pos);
}
if( HPMHooks.count.HP_pc_equipitem_pos_post ) {
- void (*postHookFunc) (struct map_session_data *sd, struct item_data *id, int *pos);
+ void (*postHookFunc) (struct map_session_data *sd, struct item_data *id, int *n, int *pos);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_equipitem_pos_post; hIndex++ ) {
postHookFunc = HPMHooks.list.HP_pc_equipitem_pos_post[hIndex].func;
- postHookFunc(sd, id, &pos);
+ postHookFunc(sd, id, &n, &pos);
}
}
return;