summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-04-21 07:53:57 +0200
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-05-10 21:30:33 +0200
commit9bc5fadd7e57e71d861259c828c39cac5d0545a3 (patch)
treed5e67683c30a8a0ed86b9c74ce8aed8dac78dfd2 /src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
parent1f1bc12648dd2dc4a88c5e49164f1142d36c69ea (diff)
downloadhercules-9bc5fadd7e57e71d861259c828c39cac5d0545a3.tar.gz
hercules-9bc5fadd7e57e71d861259c828c39cac5d0545a3.tar.bz2
hercules-9bc5fadd7e57e71d861259c828c39cac5d0545a3.tar.xz
hercules-9bc5fadd7e57e71d861259c828c39cac5d0545a3.zip
Change pc_autocast_clear() function to void
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking_map.Hooks.inc')
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.Hooks.inc17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
index 02d55228e..c5be1529e 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
@@ -63569,32 +63569,31 @@ int HP_pc_useitem(struct map_session_data *sd, int n) {
}
return retVal___;
}
-int HP_pc_autocast_clear(struct map_session_data *sd) {
+void HP_pc_autocast_clear(struct map_session_data *sd) {
int hIndex = 0;
- int retVal___ = 0;
if (HPMHooks.count.HP_pc_autocast_clear_pre > 0) {
- int (*preHookFunc) (struct map_session_data **sd);
+ void (*preHookFunc) (struct map_session_data **sd);
*HPMforce_return = false;
for (hIndex = 0; hIndex < HPMHooks.count.HP_pc_autocast_clear_pre; hIndex++) {
preHookFunc = HPMHooks.list.HP_pc_autocast_clear_pre[hIndex].func;
- retVal___ = preHookFunc(&sd);
+ preHookFunc(&sd);
}
if (*HPMforce_return) {
*HPMforce_return = false;
- return retVal___;
+ return;
}
}
{
- retVal___ = HPMHooks.source.pc.autocast_clear(sd);
+ HPMHooks.source.pc.autocast_clear(sd);
}
if (HPMHooks.count.HP_pc_autocast_clear_post > 0) {
- int (*postHookFunc) (int retVal___, struct map_session_data *sd);
+ void (*postHookFunc) (struct map_session_data *sd);
for (hIndex = 0; hIndex < HPMHooks.count.HP_pc_autocast_clear_post; hIndex++) {
postHookFunc = HPMHooks.list.HP_pc_autocast_clear_post[hIndex].func;
- retVal___ = postHookFunc(retVal___, sd);
+ postHookFunc(sd);
}
}
- return retVal___;
+ return;
}
int HP_pc_skillatk_bonus(struct map_session_data *sd, uint16 skill_id) {
int hIndex = 0;